Skip to content

Commit 156b0e5

Browse files
committed
Add installation instructions for FPM
1 parent 86af46e commit 156b0e5

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,29 @@ python config/fypp_deployment.py --help
219219
git checkout stdlib-fpm
220220
fpm 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
223245
You can run the examples with `fpm` as:
224246

225247
```sh

0 commit comments

Comments
 (0)