Skip to content

Commit

Permalink
Expose -f(no-)formatted-panics to the build system
Browse files Browse the repository at this point in the history
  • Loading branch information
castholm authored and Vexu committed Dec 16, 2023
1 parent 7066454 commit 779b8e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/std/Build/Step/Compile.zig
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ kind: Kind,
major_only_filename: ?[]const u8,
name_only_filename: ?[]const u8,
strip: ?bool,
formatted_panics: ?bool = null,
unwind_tables: ?bool,
// keep in sync with src/link.zig:CompressDebugSections
compress_debug_sections: enum { none, zlib, zstd } = .none,
Expand Down Expand Up @@ -1702,6 +1703,7 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
if (self.generated_h != null) try zig_args.append("-femit-h");

try addFlag(&zig_args, "strip", self.strip);
try addFlag(&zig_args, "formatted-panics", self.formatted_panics);
try addFlag(&zig_args, "unwind-tables", self.unwind_tables);

if (self.dwarf_format) |dwarf_format| {
Expand Down

0 comments on commit 779b8e2

Please sign in to comment.