diff options
| author | LinuxUserGD <hugegameartgd@gmail.com> | 2023-08-16 21:37:04 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-09-26 14:18:01 -0700 |
| commit | ceaae42e90b1f4ba4aa59328e76913cdde3dedb9 (patch) | |
| tree | ef18b9854a2d1c85c9a8ece40c12e9966dad281f /lib/std/Build/Step/Compile.zig | |
| parent | 1c726bcb321d03ac74d1bd646b690991ba356fd8 (diff) | |
| download | zig-ceaae42e90b1f4ba4aa59328e76913cdde3dedb9.tar.gz zig-ceaae42e90b1f4ba4aa59328e76913cdde3dedb9.zip | |
Add '--compress-debug-sections=zstd'
Diffstat (limited to 'lib/std/Build/Step/Compile.zig')
| -rw-r--r-- | lib/std/Build/Step/Compile.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig index 64e757a7f5..572e2692d3 100644 --- a/lib/std/Build/Step/Compile.zig +++ b/lib/std/Build/Step/Compile.zig @@ -39,7 +39,7 @@ name_only_filename: ?[]const u8, strip: ?bool, unwind_tables: ?bool, // keep in sync with src/link.zig:CompressDebugSections -compress_debug_sections: enum { none, zlib } = .none, +compress_debug_sections: enum { none, zlib, zstd } = .none, lib_paths: ArrayList(LazyPath), rpaths: ArrayList(LazyPath), frameworks: StringHashMap(FrameworkLinkInfo), @@ -1628,6 +1628,7 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void { switch (self.compress_debug_sections) { .none => {}, .zlib => try zig_args.append("--compress-debug-sections=zlib"), + .zstd => try zig_args.append("--compress-debug-sections=zstd"), } if (self.link_eh_frame_hdr) { |
