Commit 0f9345ea9a

Carl Åstholm <carl@astholm.se>
2024-01-13 21:24:40
Expose `-f(no-)formatted-panics` to the build system (again)
1 parent 1322049
Changed files (1)
lib
std
Build
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"),