about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Beránek <jakub.beranek@vsb.cz>2025-01-01 18:50:03 +0100
committerJakub Beránek <jakub.beranek@vsb.cz>2025-01-01 18:50:03 +0100
commit3d69dd1661361479dad4b867cca91bff9e8dd13b (patch)
tree2361b54034903b7779dfa3c088df19b075339094
parentab5446c9923090d5ebe33aeea559d9c9fa05a1ad (diff)
downloadrust-3d69dd1661361479dad4b867cca91bff9e8dd13b.tar.gz
rust-3d69dd1661361479dad4b867cca91bff9e8dd13b.zip
Do not pass LLD flags to targets flags of compiletest
Not all targets support these flags, so we cannot just pass them to the tests unconditionally. Before, we were using a linker arg (`-Clink-arg=-fuse-ld=lld`), which circumvented this in a hacky way.
-rw-r--r--src/bootstrap/src/core/build_steps/test.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs
index 6aa6e4e277d..67c1756b70a 100644
--- a/src/bootstrap/src/core/build_steps/test.rs
+++ b/src/bootstrap/src/core/build_steps/test.rs
@@ -1901,7 +1901,6 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
 
         let mut targetflags = flags;
         targetflags.push(format!("-Lnative={}", builder.test_helpers_out(target).display()));
-        targetflags.extend(linker_flags(builder, compiler.host, LldThreads::No));
         for flag in targetflags {
             cmd.arg("--target-rustcflags").arg(flag);
         }