File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,29 @@ python config/fypp_deployment.py --help
219219git checkout stdlib-fpm
220220fpm build --profile release
221221```
222- #### Runing the examples
222+
223+
224+ #### Installing with fpm
225+
226+ Either option you chose for building the ` stdlib ` , you can install it with:
227+ ``` sh
228+ fpm install --profile release
229+ ```
230+ The command above will install the following files:
231+ - ` libstdlib.a ` into ` ~/.local/lib/ `
232+ - all the ` .[s]mod ` files produced by the compiler into ` ~/.local/include/ `
233+
234+ You can change the installation path by setting the prefix option to ` fpm ` :
235+ ``` sh
236+ fpm install --profile release --prefix /my/custom/installation/path/
237+ ```
238+
239+ You can use the ` stdlib ` by adding the ` -lstdlib ` flag to your compiler.
240+ If your prefix is a non standard path, add also:
241+ - ` -L/my/custom/installation/path/lib `
242+ - ` -I/my/custom/installation/path/include `
243+
244+ #### Running the examples
223245You can run the examples with ` fpm ` as:
224246
225247``` sh
You can’t perform that action at this time.
0 commit comments