| ... | ... | @@ -826,9 +826,9 @@ fn buildOutputType( |
| 826 | 826 | var listen: Listen = .none; |
| 827 | 827 | var debug_compile_errors = false; |
| 828 | 828 | var verbose_link = (native_os != .wasi or builtin.link_libc) and |
| 829 | | EnvVar.ZIG_VERBOSE_LINK.isSet(); |
| 829 | try EnvVar.ZIG_VERBOSE_LINK.isSet(arena); |
| 830 | 830 | var verbose_cc = (native_os != .wasi or builtin.link_libc) and |
| 831 | | EnvVar.ZIG_VERBOSE_CC.isSet(); |
| 831 | try EnvVar.ZIG_VERBOSE_CC.isSet(arena); |
| 832 | 832 | var verbose_air = false; |
| 833 | 833 | var verbose_intern_pool = false; |
| 834 | 834 | var verbose_generic_instances = false; |
| ... | ... | @@ -1006,9 +1006,9 @@ fn buildOutputType( |
| 1006 | 1006 | // if set, default the color setting to .off or .on, respectively |
| 1007 | 1007 | // explicit --color arguments will still override this setting. |
| 1008 | 1008 | // Disable color on WASI per https://github.com/WebAssembly/WASI/issues/162 |
| 1009 | | var color: Color = if (native_os == .wasi or EnvVar.NO_COLOR.isSet()) |
| 1009 | var color: Color = if (native_os == .wasi or try EnvVar.NO_COLOR.isSet(arena)) |
| 1010 | 1010 | .off |
| 1011 | | else if (EnvVar.CLICOLOR_FORCE.isSet()) |
| 1011 | else if (try EnvVar.CLICOLOR_FORCE.isSet(arena)) |
| 1012 | 1012 | .on |
| 1013 | 1013 | else |
| 1014 | 1014 | .auto; |
| ... | ... | @@ -4749,9 +4749,9 @@ fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !void { |
| 4749 | 4749 | var reference_trace: ?u32 = null; |
| 4750 | 4750 | var debug_compile_errors = false; |
| 4751 | 4751 | var verbose_link = (native_os != .wasi or builtin.link_libc) and |
| 4752 | | EnvVar.ZIG_VERBOSE_LINK.isSet(); |
| 4752 | try EnvVar.ZIG_VERBOSE_LINK.isSet(arena); |
| 4753 | 4753 | var verbose_cc = (native_os != .wasi or builtin.link_libc) and |
| 4754 | | EnvVar.ZIG_VERBOSE_CC.isSet(); |
| 4754 | try EnvVar.ZIG_VERBOSE_CC.isSet(arena); |
| 4755 | 4755 | var verbose_air = false; |
| 4756 | 4756 | var verbose_intern_pool = false; |
| 4757 | 4757 | var verbose_generic_instances = false; |
| ... | ... | @@ -4934,7 +4934,7 @@ fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !void { |
| 4934 | 4934 | } |
| 4935 | 4935 | |
| 4936 | 4936 | const work_around_btrfs_bug = native_os == .linux and |
| 4937 | | EnvVar.ZIG_BTRFS_WORKAROUND.isSet(); |
| 4937 | try EnvVar.ZIG_BTRFS_WORKAROUND.isSet(arena); |
| 4938 | 4938 | const root_prog_node = std.Progress.start(.{ |
| 4939 | 4939 | .disable_printing = (color == .off), |
| 4940 | 4940 | .root_name = "Compile Build Script", |
| ... | ... | @@ -5433,7 +5433,7 @@ fn jitCmd( |
| 5433 | 5433 | fatal("unable to find self exe path: {s}", .{@errorName(err)}); |
| 5434 | 5434 | }; |
| 5435 | 5435 | |
| 5436 | | const optimize_mode: std.builtin.OptimizeMode = if (EnvVar.ZIG_DEBUG_CMD.isSet()) |
| 5436 | const optimize_mode: std.builtin.OptimizeMode = if (try EnvVar.ZIG_DEBUG_CMD.isSet(arena)) |
| 5437 | 5437 | .Debug |
| 5438 | 5438 | else |
| 5439 | 5439 | .ReleaseFast; |
| ... | ... | @@ -6965,7 +6965,7 @@ fn cmdFetch( |
| 6965 | 6965 | |
| 6966 | 6966 | const color: Color = .auto; |
| 6967 | 6967 | const work_around_btrfs_bug = native_os == .linux and |
| 6968 | | EnvVar.ZIG_BTRFS_WORKAROUND.isSet(); |
| 6968 | try EnvVar.ZIG_BTRFS_WORKAROUND.isSet(arena); |
| 6969 | 6969 | var opt_path_or_url: ?[]const u8 = null; |
| 6970 | 6970 | var override_global_cache_dir: ?[]const u8 = try EnvVar.ZIG_GLOBAL_CACHE_DIR.get(arena); |
| 6971 | 6971 | var debug_hash: bool = false; |