Skip to content

Commit 956fd10

Browse files
Cross compiling rustc_llvm on Darwin requires zlib.
1 parent 831ae3c commit 956fd10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_llvm/build.rs

Lines changed: 1 addition & 1 deletion
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)