Skip to content

Commit c9d1b84

Browse files
authored
Rollup merge of rust-lang#72696 - jethrogb:jb/llvm-zlib, r=Mark-Simulacrum
Enable LLVM zlib Compilers may generate ELF objects with compressed sections (although rustc currently doesn't do this). Currently, when linking these with `rust-lld`, you'll get this error: `rust-lld: error: ...: contains a compressed section, but zlib is not available` This enables zlib when building LLVM.
2 parents dd92106 + 44b5f53 commit c9d1b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/native.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl Step for Llvm {
158158
.define("LLVM_INCLUDE_TESTS", "OFF")
159159
.define("LLVM_INCLUDE_DOCS", "OFF")
160160
.define("LLVM_INCLUDE_BENCHMARKS", "OFF")
161-
.define("LLVM_ENABLE_ZLIB", "OFF")
161+
.define("LLVM_ENABLE_ZLIB", "ON")
162162
.define("WITH_POLLY", "OFF")
163163
.define("LLVM_ENABLE_TERMINFO", "OFF")
164164
.define("LLVM_ENABLE_LIBEDIT", "OFF")

0 commit comments

Comments
 (0)