Skip to content

Commit

Permalink
Update deployment.md (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMDoerner authored Dec 23, 2022
1 parent 533c393 commit ab0a5b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ nim c \
--outdir:"." \
<PATH_TO_YOUR_MAIN_PROJECT_FILE>.nim
```
**For Clang users (e.g. MacOs)**: Clang doesn't work properly with `--define:lto`. Replace it with `--passC:"-flto" --passL:"-flto"` which achieves the same thing.

If you want to avoid re-typing all the flags, you can define them in a [nimble task](https://github.com/nim-lang/nimble#nimble-tasks) that you can trigger instead!
Just add the following to your `<YOUR_PROJECT>.nimble` file (run [`nimble init`](https://github.com/nim-lang/nimble#nimble-init) if you don't have one):
Expand Down

0 comments on commit ab0a5b4

Please sign in to comment.