| ... | @@ -221,7 +221,8 @@ pub fn build(b: *Builder) !void { | ... | @@ -221,7 +221,8 @@ pub fn build(b: *Builder) !void { |
| 221 | test_stage2.linkLibC(); | 221 | test_stage2.linkLibC(); |
| 222 | } | 222 | } |
| 223 | | 223 | |
| 224 | const enable_logging = b.option(bool, "log", "Whether to enable logging") orelse false; | 224 | const is_debug = mode == .Debug; |
| | 225 | const enable_logging = b.option(bool, "log", "Enable debug logging with --debug-log") orelse is_debug; |
| 225 | const enable_link_snapshots = b.option(bool, "link-snapshot", "Whether to enable linker state snapshots") orelse false; | 226 | const enable_link_snapshots = b.option(bool, "link-snapshot", "Whether to enable linker state snapshots") orelse false; |
| 226 | | 227 | |
| 227 | const opt_version_string = b.option([]const u8, "version-string", "Override Zig version string. Default is to find out with git."); | 228 | const opt_version_string = b.option([]const u8, "version-string", "Override Zig version string. Default is to find out with git."); |