aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/Compile.zig
diff options
context:
space:
mode:
authorCarl Ã…stholm <carl@astholm.se>2023-12-15 21:40:56 +0100
committerVeikka Tuominen <git@vexu.eu>2023-12-16 04:08:05 +0200
commit779b8e2598521de45934c085ebece852bf5039de (patch)
tree834e6cdfb18e2208330f828d9e2f3a4fe8bf652c /lib/std/Build/Step/Compile.zig
parent70664547ce73674f5a296817b499e358db648faa (diff)
downloadzig-779b8e2598521de45934c085ebece852bf5039de.tar.gz
zig-779b8e2598521de45934c085ebece852bf5039de.zip
Expose `-f(no-)formatted-panics` to the build system
Diffstat (limited to 'lib/std/Build/Step/Compile.zig')
-rw-r--r--lib/std/Build/Step/Compile.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig
index d06a44c4da..c90f0cb103 100644
--- a/lib/std/Build/Step/Compile.zig
+++ b/lib/std/Build/Step/Compile.zig
@@ -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,
@@ -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| {