Skip to content

Commit

Permalink
ignore linker errors on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Nov 30, 2024
1 parent fddff8e commit fe9f272
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bootstrap/src/core/build_steps/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,11 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
// separate setting for the compiler.
cargo.rustflag("-Cforce-frame-pointers=yes");

// Ignore linker warnings on macOS for now. These are complicated to fix and don't affect the build.
if target.contains("apple-darwin") {
cargo.rustflag("-Alinker-messages");
}

let html_root =
format!("-Zcrate-attr=doc(html_root_url=\"{}/\")", builder.doc_rust_lang_org_channel(),);
cargo.rustflag(&html_root);
Expand Down

0 comments on commit fe9f272

Please sign in to comment.