mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
Expose -f(no-)formatted-panics to the build system (again)
This commit is contained in:
parent
1322049e24
commit
0f9345ea9a
@ -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"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user