Skip to content

Commit 6906d56

Browse files
committed
ignore linker errors on all platforms
1 parent 203fd54 commit 6906d56

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bootstrap/src/core/build_steps/compile.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,12 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
592592
// separate setting for the compiler.
593593
cargo.rustflag("-Cforce-frame-pointers=yes");
594594

595+
// Ignore linker warnings for now. These are complicated to fix and don't affect the build.
596+
// cfg(bootstrap)
597+
if stage != 0 {
598+
cargo.rustflag("-Alinker-messages");
599+
}
600+
595601
let html_root =
596602
format!("-Zcrate-attr=doc(html_root_url=\"{}/\")", builder.doc_rust_lang_org_channel(),);
597603
cargo.rustflag(&html_root);

0 commit comments

Comments
 (0)