commit 0f9345ea9a138a23937321cde3f83a76838ee36a (tree)
parent 1322049e2449ceb6314c8ee6cc9170502b278f3f
Author: Carl Ã…stholm <carl@astholm.se>
Date: Sat, 13 Jan 2024 21:24:40 +0100
Expose `-f(no-)formatted-panics` to the build system (again)
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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"),