Skip to content

Commit 5513fb7

Browse files
committed
ignore linker errors on all platforms
1 parent 814451a commit 5513fb7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bootstrap/src/core/builder/cargo.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,12 @@ impl Cargo {
270270
self.rustflags.arg("-Clink-arg=-gz");
271271
}
272272

273+
// Ignore linker warnings for now. These are complicated to fix and don't affect the build.
274+
// cfg(bootstrap)
275+
if compiler.stage != 0 {
276+
self.rustflags.arg("-Alinker-messages");
277+
}
278+
273279
// Throughout the build Cargo can execute a number of build scripts
274280
// compiling C/C++ code and we need to pass compilers, archivers, flags, etc
275281
// obtained previously to those build scripts.

0 commit comments

Comments
 (0)