Skip to content

Commit e8acafd

Browse files
authored
Rollup merge of rust-lang#75500 - glandium:arm64-mac-zlib, r=Mark-Simulacrum
Disable zlib in LLVM on aarch64-apple-darwin For some reason, building rustc on the Apple Silicon DTK fails with some undefined symbols from zlib, which I guess is similar to some issues that appeared on *-apple-ios and *-apple-tvos.
2 parents 912b5b3 + 9302c17 commit e8acafd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/native.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ 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") {
181+
if !target.contains("netbsd") && target != "aarch64-apple-darwin" {
182182
cfg.define("LLVM_ENABLE_ZLIB", "ON");
183183
} else {
184184
// FIXME: Enable zlib on NetBSD too

0 commit comments

Comments
 (0)