Skip to content

Commit b4a1301

Browse files
committed
Ignore linker warnings on macOS for ui-fulldeps
ld is showing things like this: ``` ld: ignoring duplicate libraries: '-lm' ``` I don't have time or a macbook that lets me investigate these. Just silence them for now.
1 parent 2e0b908 commit b4a1301

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,6 +1862,10 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
18621862
let mut hostflags = flags.clone();
18631863
hostflags.push(format!("-Lnative={}", builder.test_helpers_out(compiler.host).display()));
18641864
hostflags.extend(linker_flags(builder, compiler.host, LldThreads::No));
1865+
// FIXME: on macOS, we get linker warnings about duplicate `-lm` flags. We should investigate why this happens.
1866+
if suite == "ui-fulldeps" && target.ends_with("darwin") {
1867+
hostflags.push("-Alinker_messages".into());
1868+
}
18651869
for flag in hostflags {
18661870
cmd.arg("--host-rustcflags").arg(flag);
18671871
}

0 commit comments

Comments
 (0)