diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-10-13 20:17:30 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-10-13 20:17:30 +0200 |
| commit | 6ba1fdf7e0d8dfc348a163219b3c3215c3644dd6 (patch) | |
| tree | a8e5d328bc8f1dc3f47f8d84fc16ce1582ed673c /src/Compilation.zig | |
| parent | f01c3150c19fa3d6c605cc1940f70cce303c5997 (diff) | |
| download | zig-6ba1fdf7e0d8dfc348a163219b3c3215c3644dd6.tar.gz zig-6ba1fdf7e0d8dfc348a163219b3c3215c3644dd6.zip | |
stage2: use meta.stringToEnum for Color parsing
This requires renaming the variants to be snake_case, which is the new
recommended style anyways.
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 1fddda42f9..2070e0fc8a 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -103,7 +103,7 @@ owned_link_dir: ?std.fs.Dir, /// This is for stage1 and should be deleted upon completion of self-hosting. /// Don't use this for anything other than stage1 compatibility. -color: @import("main.zig").Color = .Auto, +color: @import("main.zig").Color = .auto, test_filter: ?[]const u8, test_name_prefix: ?[]const u8, @@ -385,7 +385,7 @@ pub const InitOptions = struct { machine_code_model: std.builtin.CodeModel = .default, clang_preprocessor_mode: ClangPreprocessorMode = .no, /// This is for stage1 and should be deleted upon completion of self-hosting. - color: @import("main.zig").Color = .Auto, + color: @import("main.zig").Color = .auto, test_filter: ?[]const u8 = null, test_name_prefix: ?[]const u8 = null, subsystem: ?std.Target.SubSystem = null, @@ -1179,7 +1179,7 @@ pub fn performAllTheWork(self: *Compilation) error{ TimerUnsupported, OutOfMemor var progress: std.Progress = .{}; var main_progress_node = try progress.start("", null); defer main_progress_node.end(); - if (self.color == .Off) progress.terminal = null; + if (self.color == .off) progress.terminal = null; var c_comp_progress_node = main_progress_node.start("Compile C Objects", self.c_source_files.len); defer c_comp_progress_node.end(); |
