File tree 2 files changed +3
-3
lines changed
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 {
178
178
. define ( "LLVM_TARGET_ARCH" , target_native. split ( '-' ) . next ( ) . unwrap ( ) )
179
179
. define ( "LLVM_DEFAULT_TARGET_TRIPLE" , target_native) ;
180
180
181
- if !target . contains ( "netbsd" ) && target != "aarch64-apple-darwin" {
181
+ if target != "aarch64-apple-darwin" {
182
182
cfg. define ( "LLVM_ENABLE_ZLIB" , "ON" ) ;
183
183
} else {
184
- // FIXME: Enable zlib on NetBSD too
185
- // https://github.com/rust-lang/rust/pull/72696#issuecomment-641517185
186
184
cfg. define ( "LLVM_ENABLE_ZLIB" , "OFF" ) ;
187
185
}
188
186
Original file line number Diff line number Diff line change @@ -198,6 +198,8 @@ fn main() {
198
198
} else if target. contains ( "windows-gnu" ) {
199
199
println ! ( "cargo:rustc-link-lib=shell32" ) ;
200
200
println ! ( "cargo:rustc-link-lib=uuid" ) ;
201
+ } else if target. contains ( "netbsd" ) {
202
+ println ! ( "cargo:rustc-link-lib=z" ) ;
201
203
}
202
204
cmd. args ( & components) ;
203
205
You can’t perform that action at this time.
0 commit comments