diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-07-31 04:09:19 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-31 04:09:19 +0900 |
| commit | 9391d5520478bd98276f8424b62a09b63e98037b (patch) | |
| tree | 2a1a2d9c327457fdc7a4ca2b7f4a156fe07575ac | |
| parent | f3f8e758f2b2abd84b76bcb4ec0b6ae263e1e7b9 (diff) | |
| parent | 956fd10660e836ac4602527f7297aa68b24eca17 (diff) | |
| download | rust-9391d5520478bd98276f8424b62a09b63e98037b.tar.gz rust-9391d5520478bd98276f8424b62a09b63e98037b.zip | |
Rollup merge of #86072 - MarcusCalhoun-Lopez:llvm_cross, r=nagisa
Cross compiling rustc_llvm on Darwin requires zlib.
| -rw-r--r-- | compiler/rustc_llvm/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs index 452d1b19a18..964b7cace9c 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -182,7 +182,7 @@ 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") || target.contains("haiku") { + } else if target.contains("netbsd") || target.contains("haiku") || target.contains("darwin") { println!("cargo:rustc-link-lib=z"); } cmd.args(&components); |
