Skip to content

Commit ad72d55

Browse files
committed
Revert "Remove -Alinker-messages"
This reverts commit e947492. We need to allow linker messages so that they aren't caught by cargo's `build.warnings = deny`.
1 parent fcc1f8f commit ad72d55

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,10 @@ impl Cargo {
344344
self.rustflags.arg("-Clink-arg=-gz");
345345
}
346346

347+
// Ignore linker warnings for now. These are complicated to fix and don't affect the build.
348+
// FIXME: we should really investigate these...
349+
self.rustflags.arg("-Alinker-messages");
350+
347351
// Throughout the build Cargo can execute a number of build scripts
348352
// compiling C/C++ code and we need to pass compilers, archivers, flags, etc
349353
// obtained previously to those build scripts.

0 commit comments

Comments
 (0)