| ... | ... | @@ -360,6 +360,7 @@ fn mainArgs( |
| 360 | 360 | .prepend_global_cache_path = true, |
| 361 | 361 | .prepend_zig_exe_path = true, |
| 362 | 362 | .prepend_seed = true, |
| 363 | .debug_env_var = .ZIG_DEBUG_MAKER, |
| 363 | 364 | }); |
| 364 | 365 | }, |
| 365 | 366 | .clang, .@"-cc1", .@"-cc1as" => { |
| ... | ... | @@ -4873,6 +4874,7 @@ const JitCmdOptions = struct { |
| 4873 | 4874 | capture: ?*[]u8 = null, |
| 4874 | 4875 | /// Send error bundles via std.zig.Server over stdout |
| 4875 | 4876 | server: bool = false, |
| 4877 | debug_env_var: EnvVar = .ZIG_DEBUG_CMD, |
| 4876 | 4878 | }; |
| 4877 | 4879 | |
| 4878 | 4880 | fn jitCmd( |
| ... | ... | @@ -4923,7 +4925,7 @@ fn jitCmdInner( |
| 4923 | 4925 | const self_exe_path = process.executablePathAlloc(io, arena) catch |err| |
| 4924 | 4926 | fatal("unable to find self exe path: {t}", .{err}); |
| 4925 | 4927 | |
| 4926 | | const optimize_mode: std.lang.OptimizeMode = if (EnvVar.ZIG_DEBUG_CMD.isSet(environ_map)) |
| 4928 | const optimize_mode: std.lang.OptimizeMode = if (options.debug_env_var.isSet(environ_map)) |
| 4927 | 4929 | .Debug |
| 4928 | 4930 | else |
| 4929 | 4931 | .ReleaseFast; |
| ... | ... | @@ -5062,7 +5064,7 @@ fn jitCmdInner( |
| 5062 | 5064 | |
| 5063 | 5065 | child_argv.appendSliceAssumeCapacity(args); |
| 5064 | 5066 | |
| 5065 | | if (EnvVar.ZIG_DEBUG_CMD.isSet(environ_map)) { |
| 5067 | if (options.debug_env_var.isSet(environ_map)) { |
| 5066 | 5068 | const cmd: std.zig.SubprocessCommand = .{ |
| 5067 | 5069 | .argv = child_argv.items, |
| 5068 | 5070 | }; |