1
Fork 0

ignore linker errors on all platforms

This commit is contained in:
jyn 2024-11-29 10:28:54 -05:00
parent fda2384333
commit cedd4cad21
2 changed files with 9 additions and 0 deletions

View file

@ -3577,6 +3577,8 @@ impl Step for CodegenGCC {
let mut cargo = build_cargo();
cargo
// cg_gcc's build system ignores RUSTFLAGS. pass some flags through CG_RUSTFLAGS instead.
.env("CG_RUSTFLAGS", "-Alinker-messages")
.arg("--")
.arg("test")
.arg("--use-system-gcc")

View file

@ -269,6 +269,13 @@ impl Cargo {
self.rustflags.arg("-Clink-arg=-gz");
}
// Ignore linker warnings for now. These are complicated to fix and don't affect the build.
// FIXME: we should really investigate these...
// cfg(bootstrap)
if compiler.stage != 0 {
self.rustflags.arg("-Alinker-messages");
}
// Throughout the build Cargo can execute a number of build scripts
// compiling C/C++ code and we need to pass compilers, archivers, flags, etc
// obtained previously to those build scripts.