Skip to content

Commit 5759eac

Browse files
authored
fix: move back linker flags to global config toml (#3523)
Signed-off-by: Alexander Droste <[email protected]>
1 parent 524ab28 commit 5759eac

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.cargo/config.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ rustflags = ["-C", "force-frame-pointers=yes"]
33
[target.wasm32-unknown-unknown]
44
rustflags = ['--cfg', 'getrandom_backend="wasm_js"', '-C', 'target-feature=+atomics']
55

6+
# For pyo3 to successfully link on Macos
7+
# See https://stackoverflow.com/a/77382609
8+
[target.aarch64-apple-darwin]
9+
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
10+
11+
[target.x86_64-apple-darwin]
12+
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
13+
614
[alias]
715
xtask = "run -p xtask --"
816
vx = "run -p vortex-tui --"

vortex-python/.cargo/config.toml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)