Enable zlib for NetBSD

This commit is contained in:
Mateusz Mikuła
2020-08-19 19:26:50 +02:00
parent ee541284bf
commit 985df3d55e
2 changed files with 3 additions and 3 deletions
+1 -3
View File
@@ -178,11 +178,9 @@ fn run(self, builder: &Builder<'_>) -> PathBuf {
.define("LLVM_TARGET_ARCH", target_native.split('-').next().unwrap())
.define("LLVM_DEFAULT_TARGET_TRIPLE", target_native);
if !target.contains("netbsd") && target != "aarch64-apple-darwin" {
if target != "aarch64-apple-darwin" {
cfg.define("LLVM_ENABLE_ZLIB", "ON");
} else {
// FIXME: Enable zlib on NetBSD too
// https://github.com/rust-lang/rust/pull/72696#issuecomment-641517185
cfg.define("LLVM_ENABLE_ZLIB", "OFF");
}
+2
View File
@@ -198,6 +198,8 @@ fn main() {
} else if target.contains("windows-gnu") {
println!("cargo:rustc-link-lib=shell32");
println!("cargo:rustc-link-lib=uuid");
} else if target.contains("netbsd") {
println!("cargo:rustc-link-lib=z");
}
cmd.args(&components);