diff options
| author | Ali Chraghi <alichraghi@pm.me> | 2022-10-05 14:33:11 +0330 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-10-11 17:51:25 +0200 |
| commit | d086b371f0e21e5029e1b0d05838b87502eb63e6 (patch) | |
| tree | 01fc7376ec6e1dc9179b8f40536ee855ce8017c7 /src/Compilation.zig | |
| parent | 42a3b60c331cf01d1ab80eb79e959bc86397f75b (diff) | |
| download | zig-d086b371f0e21e5029e1b0d05838b87502eb63e6.tar.gz zig-d086b371f0e21e5029e1b0d05838b87502eb63e6.zip | |
Compilation: strip debug info from ReleaseSmall by default
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 7c4c369a6b..0ff9481875 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -916,8 +916,8 @@ pub const InitOptions = struct { use_clang: ?bool = null, use_stage1: ?bool = null, single_threaded: ?bool = null, + strip: ?bool = null, rdynamic: bool = false, - strip: bool = false, function_sections: bool = false, no_builtin: bool = false, is_native_os: bool, @@ -1422,7 +1422,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { break :blk buf.items[0 .. buf.items.len - 1 :0].ptr; } else null; - const strip = options.strip or !target_util.hasDebugInfo(options.target); + const strip = options.strip orelse !target_util.hasDebugInfo(options.target); const red_zone = options.want_red_zone orelse target_util.hasRedZone(options.target); const omit_frame_pointer = options.omit_frame_pointer orelse (options.optimize_mode != .Debug); const linker_optimization: u8 = options.linker_optimization orelse switch (options.optimize_mode) { |
