Skip to content

Commit

Permalink
feat: setup a build on Mac OS
Browse files Browse the repository at this point in the history
  • Loading branch information
vitvakatu committed Dec 22, 2020
1 parent 731e0b1 commit 860a550
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# PyO3 on Mac OS requires custom compiler flags
[target.x86_64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]

[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
2 changes: 2 additions & 0 deletions mac_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cargo build --release
cp "target/release/libsc2pathlib.dylib" "sc2pathlibp/sc2pathlib.so"

0 comments on commit 860a550

Please sign in to comment.