Skip to content

Commit

Permalink
Update .cargo/config
Browse files Browse the repository at this point in the history
  • Loading branch information
Taaitaaiger committed Apr 21, 2023
1 parent 569bff1 commit 5f9a287
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -1,31 +1,2 @@
[registries.crates-io]
protocol = "sparse"

# musl targets require -crt-static, panic=abort must be set again because this overrides the
# rustflags set for the build key.
[target.aarch64-unknown-linux-musl]
rustflags = ["-C", "target-feature=-crt-static"]

[target.arm-unknown-linux-musleabihf]
rustflags = ["-C", "target-feature=-crt-static"]

[target.armv7-unknown-linux-musleabihf]
rustflags = ["-C", "target-feature=-crt-static"]

[target.i686-unknown-linux-musl]
rustflags = ["-C", "target-feature=-crt-static"]

[target.x86_64-unknown-linux-musl]
rustflags = ["-C", "target-feature=-crt-static"]

# On BSD-like platforms, the link-args `-undefined` and `dynamic_lookup` must be set to allow
# calling functions from libjulia without explicitly linking it. Like the musl targets above,
# panic=abort is set again.
[target.aarch64-apple-darwin]
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]

[target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]

[target.x86_64-unknown-freebsd]
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]

0 comments on commit 5f9a287

Please sign in to comment.