authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-22 16:53:16-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-22 16:53:16-07:00
logc5d6277ace183cf4261c13cc9b44a53ec1622199
treeada02e0a975e9603e1b8267f822046d7b80cb61d
parent53c670f46589fbdb010a0f4e1ccc38064688be80

rename an internal environment variable


2 files changed, 2 insertions(+), 2 deletions(-)

lib/std/zig.zig+1-1
...@@ -774,7 +774,7 @@ pub const EnvVar = enum {...@@ -774,7 +774,7 @@ pub const EnvVar = enum {
774 ZIG_VERBOSE_CC,774 ZIG_VERBOSE_CC,
775 ZIG_DEBUG_CMD,775 ZIG_DEBUG_CMD,
776 ZIG_IS_DETECTING_LIBC_PATHS,776 ZIG_IS_DETECTING_LIBC_PATHS,
777 ZIG_IS_TRYING_TO_NOT_CALL_ITSELF,777 ZIG_IS_AVOIDING_CALLING_ITSELF,
778778
779 // C toolchain integration779 // C toolchain integration
780 NIX_CFLAGS_COMPILE,780 NIX_CFLAGS_COMPILE,
src/main.zig+1-1
...@@ -295,7 +295,7 @@ fn mainArgs(...@@ -295,7 +295,7 @@ fn mainArgs(
295 // However it's possible Zig is installed as *that* C compiler as well, which is295 // However it's possible Zig is installed as *that* C compiler as well, which is
296 // why we have this additional environment variable here to check.296 // why we have this additional environment variable here to check.
297297
298 const inf_loop_env_key: EnvVar = .ZIG_IS_TRYING_TO_NOT_CALL_ITSELF;298 const inf_loop_env_key: EnvVar = .ZIG_IS_AVOIDING_CALLING_ITSELF;
299 if (inf_loop_env_key.isSet(environ_map)) {299 if (inf_loop_env_key.isSet(environ_map)) {
300 fatal("{s}", .{300 fatal("{s}", .{
301 "The compilation links against libc, but Zig is unable to provide a libc " ++301 "The compilation links against libc, but Zig is unable to provide a libc " ++