Skip to content

Commit

Permalink
Force usage of ld classic to workaround crash with ld prime
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Apr 28, 2024
1 parent 1e485f1 commit a34e28e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build_system/build_sysroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ pub(crate) fn build_sysroot(
if !is_native {
target_compiler.set_cross_linker_and_runner();
}
match target_compiler.triple.as_str() {
"x86_64-apple-darwin" => {
// HACK: Force usage of ld classic to workaround crash with ld prime
target_compiler.rustflags.push("-Clink-arg=-ld_classic".to_owned());
target_compiler.rustdocflags.push("-Clink-arg=-ld_classic".to_owned());
}
_ => {}
}
target_compiler
}

Expand Down

0 comments on commit a34e28e

Please sign in to comment.