Skip to content

Commit 3d69dd1

Browse files
committed
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.
1 parent ab5446c commit 3d69dd1

File tree

1 file changed

+0
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+0
-1
lines changed

src/bootstrap/src/core/build_steps/test.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,6 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
19011901

19021902
let mut targetflags = flags;
19031903
targetflags.push(format!("-Lnative={}", builder.test_helpers_out(target).display()));
1904-
targetflags.extend(linker_flags(builder, compiler.host, LldThreads::No));
19051904
for flag in targetflags {
19061905
cmd.arg("--target-rustcflags").arg(flag);
19071906
}

0 commit comments

Comments
 (0)