mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
stage2: make --debug-log work by default for debug builds
can be disabled with `-Dlog=false`
This commit is contained in:
parent
d3e40b0d80
commit
44b105a38d
1 changed files with 2 additions and 1 deletions
|
|
@ -221,7 +221,8 @@ pub fn build(b: *Builder) !void {
|
||||||
test_stage2.linkLibC();
|
test_stage2.linkLibC();
|
||||||
}
|
}
|
||||||
|
|
||||||
const enable_logging = b.option(bool, "log", "Whether to enable logging") orelse false;
|
const is_debug = mode == .Debug;
|
||||||
|
const enable_logging = b.option(bool, "log", "Enable debug logging with --debug-log") orelse is_debug;
|
||||||
const enable_link_snapshots = b.option(bool, "link-snapshot", "Whether to enable linker state snapshots") orelse false;
|
const enable_link_snapshots = b.option(bool, "link-snapshot", "Whether to enable linker state snapshots") orelse false;
|
||||||
|
|
||||||
const opt_version_string = b.option([]const u8, "version-string", "Override Zig version string. Default is to find out with git.");
|
const opt_version_string = b.option([]const u8, "version-string", "Override Zig version string. Default is to find out with git.");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue