Skip to content

Commit 6619521

Browse files
Get Pkg.build() working on Mac (#13)
* Get `Pkg.build()` working on Mac * fixup! Get `Pkg.build()` working on Mac
1 parent 3060a4f commit 6619521

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deps/build.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ run(`which cargo`)
4141
assert_compatible_version(`cargo -V`, "1.55.0")
4242
rust_source = joinpath(@__DIR__, "rust_store")
4343
# Elide rust warnings - they aren't helpful in this context
44-
ENV["RUSTFLAGS"]="-Awarnings"
44+
if Sys.isapple()
45+
ENV["RUSTFLAGS"]="-Awarnings -Clink-arg=-undefined -Clink-arg=dynamic_lookup"
46+
else
47+
ENV["RUSTFLAGS"]="-Awarnings"
48+
end
4549
# build release
4650
cd(rust_source)
4751
if Sys.islinux() || Sys.isapple()

0 commit comments

Comments
 (0)