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 {
774774 ZIG_VERBOSE_CC,
775775 ZIG_DEBUG_CMD,
776776 ZIG_IS_DETECTING_LIBC_PATHS,
777 ZIG_IS_TRYING_TO_NOT_CALL_ITSELF,
777 ZIG_IS_AVOIDING_CALLING_ITSELF,
778778
779779 // C toolchain integration
780780 NIX_CFLAGS_COMPILE,
src/main.zig+1-1
......@@ -295,7 +295,7 @@ fn mainArgs(
295295 // However it's possible Zig is installed as *that* C compiler as well, which is
296296 // 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;
299299 if (inf_loop_env_key.isSet(environ_map)) {
300300 fatal("{s}", .{
301301 "The compilation links against libc, but Zig is unable to provide a libc " ++