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

This commit is contained in:
Carl Åstholm 2024-01-13 21:24:40 +01:00 committed by Andrew Kelley
parent 1322049e24
commit 0f9345ea9a

View File

@ -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"),