Skip to content

Commit

Permalink
fix(build): simply indicate the target_env instead of hardcoding vari…
Browse files Browse the repository at this point in the history
…ous musl targets
  • Loading branch information
usagi-flow committed Dec 21, 2023
1 parent 9089ee1 commit 3ef4377
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,5 @@ integration-test = "test --features integration --profile integration --workspac
# By default, on musl linux, statically linked binaries are produced.
# But such binaries do not support loading libraries using `dlopen()` ("libloading" crate),
# which is required for loading treesitter grammars.
[target.arm-unknown-linux-musleabihf]
rustflags = ["-C", "target-feature=-crt-static"]
[target.armv7-unknown-linux-musleabihf]
rustflags = ["-C", "target-feature=-crt-static"]
[target.aarch64-unknown-linux-musl]
rustflags = ["-C", "target-feature=-crt-static"]
[target.i686-unknown-linux-musl]
rustflags = ["-C", "target-feature=-crt-static"]
[target.x86_64-unknown-linux-musl]
[target.'cfg(target_env = "musl")']
rustflags = ["-C", "target-feature=-crt-static"]

0 comments on commit 3ef4377

Please sign in to comment.