Skip to content

Commit 188afdd

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 71213fd commit 188afdd

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
@@ -374,13 +374,13 @@ impl Step for Llvm {
374374
cfg.define("LLVM_PROFDATA_FILE", path);
375375
}
376376

377-
// Disable zstd to avoid a dependency on libzstd.so.
378-
cfg.define("LLVM_ENABLE_ZSTD", "OFF");
379-
377+
// Libraries for ELF compression.
380378
if !target.is_windows() {
381379
cfg.define("LLVM_ENABLE_ZLIB", "ON");
380+
cfg.define("LLVM_ENABLE_ZSTD", "ON");
382381
} else {
383382
cfg.define("LLVM_ENABLE_ZLIB", "OFF");
383+
cfg.define("LLVM_ENABLE_ZSTD", "OFF");
384384
}
385385

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

0 commit comments

Comments
 (0)