ignore linker errors on all platforms
This commit is contained in:
parent
fda2384333
commit
cedd4cad21
2 changed files with 9 additions and 0 deletions
|
@ -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")
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue