@@ -816,9 +816,9 @@ fn buildOutputType(
816
816
var listen : Listen = .none ;
817
817
var debug_compile_errors = false ;
818
818
var verbose_link = (native_os != .wasi or builtin .link_libc ) and
819
- EnvVar .ZIG_VERBOSE_LINK .isSet ();
819
+ try EnvVar .ZIG_VERBOSE_LINK .isSet (arena );
820
820
var verbose_cc = (native_os != .wasi or builtin .link_libc ) and
821
- EnvVar .ZIG_VERBOSE_CC .isSet ();
821
+ try EnvVar .ZIG_VERBOSE_CC .isSet (arena );
822
822
var verbose_air = false ;
823
823
var verbose_intern_pool = false ;
824
824
var verbose_generic_instances = false ;
@@ -996,9 +996,9 @@ fn buildOutputType(
996
996
// if set, default the color setting to .off or .on, respectively
997
997
// explicit --color arguments will still override this setting.
998
998
// Disable color on WASI per https://github.com/WebAssembly/WASI/issues/162
999
- var color : Color = if (native_os == .wasi or EnvVar .NO_COLOR .isSet ())
999
+ var color : Color = if (native_os == .wasi or try EnvVar .NO_COLOR .isSet (arena ))
1000
1000
.off
1001
- else if (EnvVar .CLICOLOR_FORCE .isSet ())
1001
+ else if (try EnvVar .CLICOLOR_FORCE .isSet (arena ))
1002
1002
.on
1003
1003
else
1004
1004
.auto ;
@@ -4741,9 +4741,9 @@ fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
4741
4741
var reference_trace : ? u32 = null ;
4742
4742
var debug_compile_errors = false ;
4743
4743
var verbose_link = (native_os != .wasi or builtin .link_libc ) and
4744
- EnvVar .ZIG_VERBOSE_LINK .isSet ();
4744
+ try EnvVar .ZIG_VERBOSE_LINK .isSet (arena );
4745
4745
var verbose_cc = (native_os != .wasi or builtin .link_libc ) and
4746
- EnvVar .ZIG_VERBOSE_CC .isSet ();
4746
+ try EnvVar .ZIG_VERBOSE_CC .isSet (arena );
4747
4747
var verbose_air = false ;
4748
4748
var verbose_intern_pool = false ;
4749
4749
var verbose_generic_instances = false ;
@@ -4926,7 +4926,7 @@ fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
4926
4926
}
4927
4927
4928
4928
const work_around_btrfs_bug = native_os == .linux and
4929
- EnvVar .ZIG_BTRFS_WORKAROUND .isSet ();
4929
+ try EnvVar .ZIG_BTRFS_WORKAROUND .isSet (arena );
4930
4930
const root_prog_node = std .Progress .start (.{
4931
4931
.disable_printing = (color == .off ),
4932
4932
.root_name = "Compile Build Script" ,
@@ -5424,7 +5424,7 @@ fn jitCmd(
5424
5424
fatal ("unable to find self exe path: {s}" , .{@errorName (err )});
5425
5425
};
5426
5426
5427
- const optimize_mode : std.builtin.OptimizeMode = if (EnvVar .ZIG_DEBUG_CMD .isSet ())
5427
+ const optimize_mode : std.builtin.OptimizeMode = if (try EnvVar .ZIG_DEBUG_CMD .isSet (arena ))
5428
5428
.Debug
5429
5429
else
5430
5430
.ReleaseFast ;
@@ -6955,7 +6955,7 @@ fn cmdFetch(
6955
6955
6956
6956
const color : Color = .auto ;
6957
6957
const work_around_btrfs_bug = native_os == .linux and
6958
- EnvVar .ZIG_BTRFS_WORKAROUND .isSet ();
6958
+ try EnvVar .ZIG_BTRFS_WORKAROUND .isSet (arena );
6959
6959
var opt_path_or_url : ? []const u8 = null ;
6960
6960
var override_global_cache_dir : ? []const u8 = try EnvVar .ZIG_GLOBAL_CACHE_DIR .get (arena );
6961
6961
var debug_hash : bool = false ;
0 commit comments