From 97e8c731f614df5b1e550a1f3be067353a06f633 Mon Sep 17 00:00:00 2001 From: usagi-flow <2804556+usagi-flow@users.noreply.github.com> Date: Thu, 21 Dec 2023 12:05:43 +0100 Subject: [PATCH] fix(build): simply indicate the target_env instead of hardcoding various musl targets --- .cargo/config.toml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index f451a7fa3f70..4a6b2671693a 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"]