mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-11 14:33:32 +00:00
Rollup merge of #85762 - mati865:disable-zlib-on-windows, r=Mark-Simulacrum
Do not try to build LLVM with Zlib on Windows Fixes https://github.com/rust-lang/rust/issues/85422 Fixes https://github.com/rust-lang/rust/issues/85624 We do not install Zlib on the CI but recent builds somehow started picking it's shared version. To avoid relying on CI binaries so let's explicitly disable it.
This commit is contained in:
commit
957badbcc4
@ -181,7 +181,7 @@ impl Step for Llvm {
|
||||
.define("LLVM_TARGET_ARCH", target_native.split('-').next().unwrap())
|
||||
.define("LLVM_DEFAULT_TARGET_TRIPLE", target_native);
|
||||
|
||||
if target != "aarch64-apple-darwin" {
|
||||
if target != "aarch64-apple-darwin" && !target.contains("windows") {
|
||||
cfg.define("LLVM_ENABLE_ZLIB", "ON");
|
||||
} else {
|
||||
cfg.define("LLVM_ENABLE_ZLIB", "OFF");
|
||||
|
Loading…
Reference in New Issue
Block a user