From c5d6277ace183cf4261c13cc9b44a53ec1622199 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 22 Jun 2026 16:53:16 -0700 Subject: [PATCH] rename an internal environment variable --- lib/std/zig.zig | 2 +- src/main.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/zig.zig b/lib/std/zig.zig index 6cd6deecb66f0070411926184fd48929eb6c03f0..cdb2e857cd3aff3019476837147c57c50318de7e 100644 --- a/lib/std/zig.zig +++ b/lib/std/zig.zig @@ -774,7 +774,7 @@ pub const EnvVar = enum { ZIG_VERBOSE_CC, ZIG_DEBUG_CMD, ZIG_IS_DETECTING_LIBC_PATHS, - ZIG_IS_TRYING_TO_NOT_CALL_ITSELF, + ZIG_IS_AVOIDING_CALLING_ITSELF, // C toolchain integration NIX_CFLAGS_COMPILE, diff --git a/src/main.zig b/src/main.zig index 6e47c30a30bb0e15d5f742c151a444a426ff91cd..1c33a168f4ef7e0dae3608885f994eb49fe4cd82 100644 --- a/src/main.zig +++ b/src/main.zig @@ -295,7 +295,7 @@ fn mainArgs( // However it's possible Zig is installed as *that* C compiler as well, which is // why we have this additional environment variable here to check. - const inf_loop_env_key: EnvVar = .ZIG_IS_TRYING_TO_NOT_CALL_ITSELF; + const inf_loop_env_key: EnvVar = .ZIG_IS_AVOIDING_CALLING_ITSELF; if (inf_loop_env_key.isSet(environ_map)) { fatal("{s}", .{ "The compilation links against libc, but Zig is unable to provide a libc " ++ -- 2.54.0