Skip to content

Commit 9391d55

Browse files
authored
Rollup merge of #86072 - MarcusCalhoun-Lopez:llvm_cross, r=nagisa
Cross compiling rustc_llvm on Darwin requires zlib.
2 parents f3f8e75 + 956fd10 commit 9391d55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_llvm/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ fn main() {
182182
} else if target.contains("windows-gnu") {
183183
println!("cargo:rustc-link-lib=shell32");
184184
println!("cargo:rustc-link-lib=uuid");
185-
} else if target.contains("netbsd") || target.contains("haiku") {
185+
} else if target.contains("netbsd") || target.contains("haiku") || target.contains("darwin") {
186186
println!("cargo:rustc-link-lib=z");
187187
}
188188
cmd.args(&components);

0 commit comments

Comments
 (0)