authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-08-04 17:31:16-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-08-05 18:43:50+02:00
loga06534d73a86d44b7170f56c1e4709a5eb18f681
tree644abdd4a1fe7acdc3756c73bb10f2a981ccabaa
parent01e5c1885684609d84c79135e716b33a1c3fd9a1

compiler: eliminate ZIG_DEBUG_MAKER

Just use ZIG_DEBUG_CMD the same as the other jit commands. Originally this was working around a CI issue but that is no longer the case. ZIG_DEBUG_MAKER is a new env var that didn't make it to any release tag yet. Let's revert it to keep number of env vars more minimal.

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

ci/x86_64-linux-debug.sh+1-1
......@@ -44,7 +44,7 @@ ninja install
4444
4545# Must be done after zig cc is finished.
4646export ZIG_LIB_DIR="$PWD/../lib"
47export ZIG_DEBUG_MAKER=1
47export ZIG_DEBUG_CMD=1
4848
4949# simultaneously test building self-hosted without LLVM and with 32-bit arm
5050stage3-debug/bin/zig build \
lib/std/zig.zig-1
......@@ -767,7 +767,6 @@ pub const EnvVar = enum {
767767 ZIG_VERBOSE_CC,
768768 ZIG_VERBOSE_CMD,
769769 ZIG_DEBUG_CMD,
770 ZIG_DEBUG_MAKER,
771770 ZIG_IS_DETECTING_LIBC_PATHS,
772771 ZIG_IS_AVOIDING_CALLING_ITSELF,
773772
src/main.zig+1-3
......@@ -359,7 +359,6 @@ fn mainArgs(
359359 .prepend_global_cache_path = true,
360360 .prepend_zig_exe_path = true,
361361 .prepend_seed = true,
362 .debug_env_var = .ZIG_DEBUG_MAKER,
363362 .release_mode = .safe,
364363 });
365364 },
......@@ -4863,7 +4862,6 @@ const JitCmdOptions = struct {
48634862 capture: ?*[]u8 = null,
48644863 /// Send error bundles via std.zig.Server over stdout
48654864 server: bool = false,
4866 debug_env_var: EnvVar = .ZIG_DEBUG_CMD,
48674865 release_mode: std.lang.Optimize = .fast,
48684866};
48694867
......@@ -4915,7 +4913,7 @@ fn jitCmdInner(
49154913 const self_exe_path = process.executablePathAlloc(io, arena) catch |err|
49164914 fatal("unable to find self exe path: {t}", .{err});
49174915
4918 const optimize_mode: std.lang.Optimize = if (options.debug_env_var.isSet(environ_map))
4916 const optimize_mode: std.lang.Optimize = if (EnvVar.ZIG_DEBUG_CMD.isSet(environ_map))
49194917 .debug
49204918 else
49214919 options.release_mode;