| ... | ... | @@ -23,6 +23,11 @@ cwd: ?Build.LazyPath, |
| 23 | 23 | /// Override this field to modify the environment, or use setEnvironmentVariable |
| 24 | 24 | env_map: ?*EnvMap, |
| 25 | 25 | |
| 26 | /// When `true` prevents `ZIG_PROGRESS` environment variable from being passed |
| 27 | /// to the child process, which otherwise would be used for the child to send |
| 28 | /// progress updates to the parent. |
| 29 | disable_zig_progress: bool, |
| 30 | |
| 26 | 31 | /// Configures whether the Run step is considered to have side-effects, and also |
| 27 | 32 | /// whether the Run step will inherit stdio streams, forwarding them to the |
| 28 | 33 | /// parent process, in which case will require a global lock to prevent other |
| ... | ... | @@ -152,6 +157,7 @@ pub fn create(owner: *std.Build, name: []const u8) *Run { |
| 152 | 157 | .argv = .{}, |
| 153 | 158 | .cwd = null, |
| 154 | 159 | .env_map = null, |
| 160 | .disable_zig_progress = false, |
| 155 | 161 | .stdio = .infer_from_args, |
| 156 | 162 | .stdin = .none, |
| 157 | 163 | .extra_file_dependencies = &.{}, |
| ... | ... | @@ -1235,7 +1241,7 @@ fn spawnChildAndCollect( |
| 1235 | 1241 | child.stdin_behavior = .Pipe; |
| 1236 | 1242 | } |
| 1237 | 1243 | |
| 1238 | | if (run.stdio != .zig_test) { |
| 1244 | if (run.stdio != .zig_test and !run.disable_zig_progress) { |
| 1239 | 1245 | child.progress_node = prog_node; |
| 1240 | 1246 | } |
| 1241 | 1247 | |