Skip to content

Commit

Permalink
build successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncolburne committed Feb 4, 2023
1 parent d49b7d5 commit e967e1c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ TAIL_LINES = $(shell echo $$(( $(LINES) - $(LINE) )))

python:
@head -n $(LINE) Cargo.toml > cargo/$@/Cargo.toml
@echo "pyo3 = { version = \"0.18.0\", features = [\"abi3\"] }" >> cargo/$@/Cargo.toml
@echo "pyo3 = { version = \"0.18.0\", features = [\"abi3\", \"extension-module\"] }" >> cargo/$@/Cargo.toml
@tail -n $(TAIL_LINES) Cargo.toml >> cargo/$@/Cargo.toml
@echo >> cargo/$@/Cargo.toml
@cat cargo/$@/Cargo.toml.tail >> cargo/$@/Cargo.toml
cargo build --release --target-dir target/$@ --manifest-path cargo/$@/Cargo.toml
@cd cargo/$@ && cargo build --release --target-dir ../../target/$@

rust:
cargo build --release
@cargo build --release

libs: rust python

Expand Down
11 changes: 11 additions & 0 deletions cargo/python/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[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",
]

0 comments on commit e967e1c

Please sign in to comment.