From 779b8e2598521de45934c085ebece852bf5039de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20=C3=85stholm?= Date: Fri, 15 Dec 2023 21:40:56 +0100 Subject: [PATCH] Expose `-f(no-)formatted-panics` to the build system --- lib/std/Build/Step/Compile.zig | 2 ++ 1 file changed, 2 insertions(+) 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| {