Skip to content

Commit 00d4e3d

Browse files
committed
Remove unused -C link-arg=-fuse-ld=lld
That's a gcc flag. lld is a linker, not a C compiler, and doesn't accept a `use-ld` flag. `-C linker` (which is already present in the test) is enough. This fixes the following warning found in rust-lang/rust#119286: ``` ---- expected: tests\testsuite\freshness.rs:2822:27 ++++ actual: stderr 1 1 | [FRESH] foo v0.1.0 ([ROOT]/foo) 2 + [WARNING] linker stderr: rust-lld: ignoring unknown argument '-fuse-ld=lld'␍ 3 + | 4 + = [NOTE] `#[warn(linker_messages)]` on by default 5 + 6 + [WARNING] `foo` (lib) generated 1 warning 2 7 | [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s ```
1 parent 045bf21 commit 00d4e3d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

tests/testsuite/freshness.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2799,7 +2799,6 @@ fn lld_is_fresh() {
27992799
r#"
28002800
[target.x86_64-pc-windows-msvc]
28012801
linker = "rust-lld"
2802-
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
28032802
"#,
28042803
)
28052804
.file(

tests/testsuite/freshness_checksum.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2602,7 +2602,6 @@ fn lld_is_fresh() {
26022602
r#"
26032603
[target.x86_64-pc-windows-msvc]
26042604
linker = "rust-lld"
2605-
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
26062605
"#,
26072606
)
26082607
.file(

0 commit comments

Comments
 (0)