Rollup merge of #86072 - MarcusCalhoun-Lopez:llvm_cross, r=nagisa

Cross compiling rustc_llvm on Darwin requires zlib.
This commit is contained in:
Yuki Okushi 2021-07-31 04:09:19 +09:00 committed by GitHub
commit 9391d55204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);