Skip to content

Commit 0323bf6

Browse files
committed
Enable zstd for debug compression.
Set LLVM_ENABLE_ZSTD alongside LLVM_ENABLE_ZLIB so that --compress-debug-sections=zstd is an option.
1 parent ab1527f commit 0323bf6

File tree

1 file changed

+3
-3
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+3
-3
lines changed

src/bootstrap/src/core/build_steps/llvm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,13 +368,13 @@ impl Step for Llvm {
368368
cfg.define("LLVM_PROFDATA_FILE", path);
369369
}
370370

371-
// Disable zstd to avoid a dependency on libzstd.so.
372-
cfg.define("LLVM_ENABLE_ZSTD", "OFF");
373-
371+
// Libraries for ELF compression.
374372
if !target.is_windows() {
375373
cfg.define("LLVM_ENABLE_ZLIB", "ON");
374+
cfg.define("LLVM_ENABLE_ZSTD", "ON");
376375
} else {
377376
cfg.define("LLVM_ENABLE_ZLIB", "OFF");
377+
cfg.define("LLVM_ENABLE_ZSTD", "OFF");
378378
}
379379

380380
// Are we compiling for iOS/tvOS/watchOS/visionOS?

0 commit comments

Comments
 (0)