Skip to content

Commit 80cacd7

Browse files
committed
Auto merge of #75655 - nielx:fix/haiku-llvm-libz, r=Mark-Simulacrum
Disable zlib in LLVM on Haiku PR #72696 enabled the option LLVM_ENABLE_ZLIB for the LLVM builds. Like NetBSD and aarch64-apple-darwin (see PR #75500), the LLVM build system not explicitly linking to libz on these platforms cause issues. For Haiku, this meant the runtime loader complaining about undefined symbols..
2 parents ef55a0a + 0f6bcb7 commit 80cacd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_llvm/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ fn main() {
198198
} else if target.contains("windows-gnu") {
199199
println!("cargo:rustc-link-lib=shell32");
200200
println!("cargo:rustc-link-lib=uuid");
201-
} else if target.contains("netbsd") {
201+
} else if target.contains("netbsd") || target.contains("haiku") {
202202
println!("cargo:rustc-link-lib=z");
203203
}
204204
cmd.args(&components);

0 commit comments

Comments
 (0)