authorgravatar for carl@astholm.seCarl Åstholm <carl@astholm.se> 2024-01-13 21:24:40+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-13 22:07:34-08:00
log0f9345ea9a138a23937321cde3f83a76838ee36a
treec320f69d06c7be51318ed4529726ddf59ced7a10
parent1322049e2449ceb6314c8ee6cc9170502b278f3f

Expose `-f(no-)formatted-panics` to the build system (again)


1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/Build/Step/Compile.zig+3
...@@ -33,6 +33,7 @@ version: ?std.SemanticVersion,...@@ -33,6 +33,7 @@ version: ?std.SemanticVersion,
33kind: Kind,33kind: Kind,
34major_only_filename: ?[]const u8,34major_only_filename: ?[]const u8,
35name_only_filename: ?[]const u8,35name_only_filename: ?[]const u8,
36formatted_panics: ?bool = null,
36// keep in sync with src/link.zig:CompressDebugSections37// keep in sync with src/link.zig:CompressDebugSections
37compress_debug_sections: enum { none, zlib, zstd } = .none,38compress_debug_sections: enum { none, zlib, zstd } = .none,
38verbose_link: bool,39verbose_link: bool,
...@@ -1305,6 +1306,8 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {...@@ -1305,6 +1306,8 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
1305 if (self.generated_llvm_ir != null) try zig_args.append("-femit-llvm-ir");1306 if (self.generated_llvm_ir != null) try zig_args.append("-femit-llvm-ir");
1306 if (self.generated_h != null) try zig_args.append("-femit-h");1307 if (self.generated_h != null) try zig_args.append("-femit-h");
13071308
1309 try addFlag(&zig_args, "formatted-panics", self.formatted_panics);
1310
1308 switch (self.compress_debug_sections) {1311 switch (self.compress_debug_sections) {
1309 .none => {},1312 .none => {},
1310 .zlib => try zig_args.append("--compress-debug-sections=zlib"),1313 .zlib => try zig_args.append("--compress-debug-sections=zlib"),