Skip to content

Commit

Permalink
refactor rust configuration: consolidate rustflags for target archite…
Browse files Browse the repository at this point in the history
…ctures
  • Loading branch information
rjchallis committed Nov 26, 2024
1 parent 82360dc commit 3dcea38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 8 additions & 1 deletion rust/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-feature=+crt-static"]

[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",
]
]
9 changes: 0 additions & 9 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ lto = true
codegen-units = 1
panic = "abort"

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

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

[dependencies]
anyhow = "1.0.71"
atty = "0.2.14"
Expand Down

0 comments on commit 3dcea38

Please sign in to comment.