File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,11 +178,9 @@ 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 != "aarch64-apple-darwin" {
182182 cfg. define ( "LLVM_ENABLE_ZLIB" , "ON" ) ;
183183 } else {
184- // FIXME: Enable zlib on NetBSD too
185- // https://github.com/rust-lang/rust/pull/72696#issuecomment-641517185
186184 cfg. define ( "LLVM_ENABLE_ZLIB" , "OFF" ) ;
187185 }
188186
Original file line number Diff line number Diff line change @@ -198,6 +198,8 @@ fn main() {
198198 } else if target. contains ( "windows-gnu" ) {
199199 println ! ( "cargo:rustc-link-lib=shell32" ) ;
200200 println ! ( "cargo:rustc-link-lib=uuid" ) ;
201+ } else if target. contains ( "netbsd" ) {
202+ println ! ( "cargo:rustc-link-lib=z" ) ;
201203 }
202204 cmd. args ( & components) ;
203205
You can’t perform that action at this time.
0 commit comments