Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fe9f272

Browse files
committedNov 30, 2024
ignore linker errors on macOS
1 parent fddff8e commit fe9f272

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

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

+5
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,11 @@ 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 on macOS for now. These are complicated to fix and don't affect the build.
596+
if target.contains("apple-darwin") {
597+
cargo.rustflag("-Alinker-messages");
598+
}
599+
595600
let html_root =
596601
format!("-Zcrate-attr=doc(html_root_url=\"{}/\")", builder.doc_rust_lang_org_channel(),);
597602
cargo.rustflag(&html_root);

0 commit comments

Comments
 (0)
Failed to load comments.