diff --git a/.cargo/config.toml b/.cargo/config.toml index f451a7fa3f70b..4a6b2671693ae 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -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"]