aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/Compile.zig
diff options
context:
space:
mode:
authorCarl Ã…stholm <carl@astholm.se>2024-01-13 21:24:40 +0100
committerAndrew Kelley <andrew@ziglang.org>2024-01-13 22:07:34 -0800
commit0f9345ea9a138a23937321cde3f83a76838ee36a (patch)
treec320f69d06c7be51318ed4529726ddf59ced7a10 /lib/std/Build/Step/Compile.zig
parent1322049e2449ceb6314c8ee6cc9170502b278f3f (diff)
downloadzig-0f9345ea9a138a23937321cde3f83a76838ee36a.tar.gz
zig-0f9345ea9a138a23937321cde3f83a76838ee36a.zip
Expose `-f(no-)formatted-panics` to the build system (again)
Diffstat (limited to 'lib/std/Build/Step/Compile.zig')
-rw-r--r--lib/std/Build/Step/Compile.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig
index cbfe6e7d86..839a5f2b07 100644
--- a/lib/std/Build/Step/Compile.zig
+++ b/lib/std/Build/Step/Compile.zig
@@ -33,6 +33,7 @@ version: ?std.SemanticVersion,
kind: Kind,
major_only_filename: ?[]const u8,
name_only_filename: ?[]const u8,
+formatted_panics: ?bool = null,
// keep in sync with src/link.zig:CompressDebugSections
compress_debug_sections: enum { none, zlib, zstd } = .none,
verbose_link: bool,
@@ -1305,6 +1306,8 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
if (self.generated_llvm_ir != null) try zig_args.append("-femit-llvm-ir");
if (self.generated_h != null) try zig_args.append("-femit-h");
+ try addFlag(&zig_args, "formatted-panics", self.formatted_panics);
+
switch (self.compress_debug_sections) {
.none => {},
.zlib => try zig_args.append("--compress-debug-sections=zlib"),