From 8f7a7a3389b669658d35b5ebeff4744bfce04f8a Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Fri, 10 Apr 2026 09:04:41 +0200 Subject: [PATCH] build: Disable lld only for x86_64-unknown-linux-gnu Builds on aarch64 fail with ``` error: `-C linker-features=-lld` is unstable on the `aarch64-unknown-linux-gnu` target. The `-Z unstable-options` flag must also be passed to use it on this target ``` otherwise. Since lld is only the default linker on x86_64-unknown-linux-gnu disable it only for that target. --- .cargo/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 4572b38..830092a 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -5,5 +5,5 @@ [env] RUSTC_BOOTSTRAP = "1" -[build] +[target.x86_64-unknown-linux-gnu] rustflags = ["-Clinker-features=-lld"]