diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-01-19 15:49:08 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-01-19 15:49:08 -0700 |
| commit | 1af31baf0ba447b6ea5a1456df5ba2d82dc26e56 (patch) | |
| tree | a03fbbd5250b28d63188bbeae7e83e0b0487d81d /src/config.zig.in | |
| parent | 287f640cc94d7f1cddb30e9ef57a8c921621a5b9 (diff) | |
| download | zig-1af31baf0ba447b6ea5a1456df5ba2d82dc26e56.tar.gz zig-1af31baf0ba447b6ea5a1456df5ba2d82dc26e56.zip | |
stage2: -Dlog enables all logging, log scopes can be set at runtime
Previously you had to recompile if you wanted to change the log scopes
that get printed. Now, log scopes can be set at runtime, and -Dlog
controls whether all logging is available at runtime.
Purpose here is a nicer development experience. Most likely stage2
developers will always want -Dlog enabled and then pass --debug-log
scopes when debugging particular issues.
Diffstat (limited to 'src/config.zig.in')
| -rw-r--r-- | src/config.zig.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.zig.in b/src/config.zig.in index b672581ea4..1e9d1eecdf 100644 --- a/src/config.zig.in +++ b/src/config.zig.in @@ -1,7 +1,7 @@ pub const have_llvm = true; pub const version: [:0]const u8 = "@ZIG_VERSION@"; pub const semver = try @import("std").SemanticVersion.parse(version); -pub const log_scopes: []const []const u8 = &[_][]const u8{}; +pub const enable_logging: bool = false; pub const enable_tracy = false; pub const is_stage1 = true; pub const skip_non_native = false; |
