Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Thanks to @mre in #172 (comment)
  • Loading branch information
konstin authored Jul 1, 2018
1 parent aadde4c commit 9ce5e8c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,15 @@ fn sum_as_string(a:i64, b:i64) -> String {

```

**To build**: `cargo rustc --release`
On windows and linux, you can build normally with `cargo build --release`. On Mac Os, you need to set additional linker arguments. One option is to compile with `cargo rustc --release -- -C link-arg=-undefined -C link-arg=dynamic_lookup`, the other is to create a `.cargo/config` with the following content:

**On a Mac**: `cargo rustc --release -- -C link-arg=-undefined -C link-arg=dynamic_lookup`
```toml
[target.x86_64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
```

Also on macOS, you will need to rename the output from \*.dylib to \*.so. On Windows, you will need to rename the output from \*.dll to \*.pyd.

Expand Down

0 comments on commit 9ce5e8c

Please sign in to comment.