| ... | @@ -23,6 +23,11 @@ cwd: ?Build.LazyPath, | ... | @@ -23,6 +23,11 @@ cwd: ?Build.LazyPath, |
| 23 | /// Override this field to modify the environment, or use setEnvironmentVariable | 23 | /// Override this field to modify the environment, or use setEnvironmentVariable |
| 24 | env_map: ?*EnvMap, | 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 | /// Configures whether the Run step is considered to have side-effects, and also | 31 | /// Configures whether the Run step is considered to have side-effects, and also |
| 27 | /// whether the Run step will inherit stdio streams, forwarding them to the | 32 | /// whether the Run step will inherit stdio streams, forwarding them to the |
| 28 | /// parent process, in which case will require a global lock to prevent other | 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,6 +157,7 @@ pub fn create(owner: *std.Build, name: []const u8) *Run { |
| 152 | .argv = .{}, | 157 | .argv = .{}, |
| 153 | .cwd = null, | 158 | .cwd = null, |
| 154 | .env_map = null, | 159 | .env_map = null, |
| | 160 | .disable_zig_progress = false, |
| 155 | .stdio = .infer_from_args, | 161 | .stdio = .infer_from_args, |
| 156 | .stdin = .none, | 162 | .stdin = .none, |
| 157 | .extra_file_dependencies = &.{}, | 163 | .extra_file_dependencies = &.{}, |
| ... | @@ -1235,7 +1241,7 @@ fn spawnChildAndCollect( | ... | @@ -1235,7 +1241,7 @@ fn spawnChildAndCollect( |
| 1235 | child.stdin_behavior = .Pipe; | 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 | child.progress_node = prog_node; | 1245 | child.progress_node = prog_node; |
| 1240 | } | 1246 | } |
| 1241 | | 1247 | |