Skip to content

Commit

Permalink
Rollup merge of #86072 - MarcusCalhoun-Lopez:llvm_cross, r=nagisa
Browse files Browse the repository at this point in the history
Cross compiling rustc_llvm on Darwin requires zlib.
  • Loading branch information
JohnTitor authored Jul 30, 2021
2 parents f3f8e75 + 956fd10 commit 9391d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_llvm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ fn main() {
} else if target.contains("windows-gnu") {
println!("cargo:rustc-link-lib=shell32");
println!("cargo:rustc-link-lib=uuid");
} else if target.contains("netbsd") || target.contains("haiku") {
} else if target.contains("netbsd") || target.contains("haiku") || target.contains("darwin") {
println!("cargo:rustc-link-lib=z");
}
cmd.args(&components);
Expand Down

0 comments on commit 9391d55

Please sign in to comment.