Skip to content

Commit 2083b7a

Browse files
committed
Disable zlib in LLVM on Haiku
PR rust-lang#72696 enabled the option LLVM_ENABLE_ZLIB for the LLVM builds. Like NetBSD and aarch64-apple-darwin (see PR rust-lang#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..
1 parent 147d3f6 commit 2083b7a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/native.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ impl Step for Llvm {
178178
.define("LLVM_TARGET_ARCH", target_native.split('-').next().unwrap())
179179
.define("LLVM_DEFAULT_TARGET_TRIPLE", target_native);
180180

181-
if !target.contains("netbsd") && target != "aarch64-apple-darwin" {
181+
if !target.contains("netbsd")
182+
&& target != "aarch64-apple-darwin"
183+
&& !target.contains("haiku")
184+
{
182185
cfg.define("LLVM_ENABLE_ZLIB", "ON");
183186
} else {
184187
// FIXME: Enable zlib on NetBSD too

0 commit comments

Comments
 (0)