File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,6 @@ impl Step for Llvm {
158
158
. define ( "LLVM_INCLUDE_TESTS" , "OFF" )
159
159
. define ( "LLVM_INCLUDE_DOCS" , "OFF" )
160
160
. define ( "LLVM_INCLUDE_BENCHMARKS" , "OFF" )
161
- . define ( "LLVM_ENABLE_ZLIB" , "OFF" )
162
161
. define ( "WITH_POLLY" , "OFF" )
163
162
. define ( "LLVM_ENABLE_TERMINFO" , "OFF" )
164
163
. define ( "LLVM_ENABLE_LIBEDIT" , "OFF" )
@@ -168,6 +167,14 @@ impl Step for Llvm {
168
167
. define ( "LLVM_TARGET_ARCH" , target. split ( '-' ) . next ( ) . unwrap ( ) )
169
168
. define ( "LLVM_DEFAULT_TARGET_TRIPLE" , target) ;
170
169
170
+ if !target. contains ( "netbsd" ) {
171
+ cfg. define ( "LLVM_ENABLE_ZLIB" , "ON" ) ;
172
+ } else {
173
+ // FIXME: Enable zlib on NetBSD too
174
+ // https://github.com/rust-lang/rust/pull/72696#issuecomment-641517185
175
+ cfg. define ( "LLVM_ENABLE_ZLIB" , "OFF" ) ;
176
+ }
177
+
171
178
if builder. config . llvm_thin_lto {
172
179
cfg. define ( "LLVM_ENABLE_LTO" , "Thin" ) ;
173
180
if !target. contains ( "apple" ) {
You can’t perform that action at this time.
0 commit comments