We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e40b0 commit 44b105aCopy full SHA for 44b105a
build.zig
@@ -221,7 +221,8 @@ pub fn build(b: *Builder) !void {
221
test_stage2.linkLibC();
222
}
223
224
- const enable_logging = b.option(bool, "log", "Whether to enable logging") orelse false;
+ const is_debug = mode == .Debug;
225
+ const enable_logging = b.option(bool, "log", "Enable debug logging with --debug-log") orelse is_debug;
226
const enable_link_snapshots = b.option(bool, "link-snapshot", "Whether to enable linker state snapshots") orelse false;
227
228
const opt_version_string = b.option([]const u8, "version-string", "Override Zig version string. Default is to find out with git.");
0 commit comments