authorgravatar for carl@astholm.seCarl Åstholm <carl@astholm.se> 2023-12-15 21:40:56+01:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-12-16 04:08:05+02:00
log779b8e2598521de45934c085ebece852bf5039de
tree834e6cdfb18e2208330f828d9e2f3a4fe8bf652c
parent70664547ce73674f5a296817b499e358db648faa

Expose `-f(no-)formatted-panics` to the build system


1 files changed, 2 insertions(+), 0 deletions(-)

lib/std/Build/Step/Compile.zig+2
...@@ -37,6 +37,7 @@ kind: Kind,...@@ -37,6 +37,7 @@ kind: Kind,
37major_only_filename: ?[]const u8,37major_only_filename: ?[]const u8,
38name_only_filename: ?[]const u8,38name_only_filename: ?[]const u8,
39strip: ?bool,39strip: ?bool,
40formatted_panics: ?bool = null,
40unwind_tables: ?bool,41unwind_tables: ?bool,
41// keep in sync with src/link.zig:CompressDebugSections42// keep in sync with src/link.zig:CompressDebugSections
42compress_debug_sections: enum { none, zlib, zstd } = .none,43compress_debug_sections: enum { none, zlib, zstd } = .none,
...@@ -1702,6 +1703,7 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {...@@ -1702,6 +1703,7 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
1702 if (self.generated_h != null) try zig_args.append("-femit-h");1703 if (self.generated_h != null) try zig_args.append("-femit-h");
17031704
1704 try addFlag(&zig_args, "strip", self.strip);1705 try addFlag(&zig_args, "strip", self.strip);
1706 try addFlag(&zig_args, "formatted-panics", self.formatted_panics);
1705 try addFlag(&zig_args, "unwind-tables", self.unwind_tables);1707 try addFlag(&zig_args, "unwind-tables", self.unwind_tables);
17061708
1707 if (self.dwarf_format) |dwarf_format| {1709 if (self.dwarf_format) |dwarf_format| {