| ... | ... | @@ -163,7 +163,6 @@ pub fn main(init: std.process.Init) !void { |
| 163 | 163 | "--global-cache-dir", |
| 164 | 164 | ".global-cache", |
| 165 | 165 | }); |
| 166 | | try child_args.append(arena, "--listen=-"); |
| 167 | 166 | |
| 168 | 167 | if (opt_resolved_lib_dir) |resolved_lib_dir| { |
| 169 | 168 | try child_args.appendSlice(arena, &.{ "--zig-lib-dir", resolved_lib_dir }); |
| ... | ... | @@ -187,6 +186,7 @@ pub fn main(init: std.process.Init) !void { |
| 187 | 186 | for (case.modules) |mod| { |
| 188 | 187 | try child_args.append(arena, try std.fmt.allocPrint(arena, "-M{s}={s}", .{ mod.name, mod.file })); |
| 189 | 188 | } |
| 189 | try child_args.append(arena, "--listen=-"); |
| 190 | 190 | |
| 191 | 191 | const zig_prog_node = prog_node.start("zig", 0); |
| 192 | 192 | defer zig_prog_node.end(); |
| ... | ... | @@ -210,6 +210,16 @@ pub fn main(init: std.process.Init) !void { |
| 210 | 210 | try cc_child_args.append(arena, "-o"); |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | const allow_compiler_stderr = debug_log_args.items.len != 0; |
| 214 | |
| 215 | if (allow_compiler_stderr) { |
| 216 | const cmd: std.zig.SubprocessCommand = .{ |
| 217 | .argv = child_args.items, |
| 218 | .cwd = tmp_dir_path, |
| 219 | }; |
| 220 | std.log.scoped(.spawn).info("{f}", .{cmd}); |
| 221 | } |
| 222 | |
| 213 | 223 | var child = try std.process.spawn(io, .{ |
| 214 | 224 | .argv = child_args.items, |
| 215 | 225 | .stdin = .pipe, |
| ... | ... | @@ -233,7 +243,7 @@ pub fn main(init: std.process.Init) !void { |
| 233 | 243 | .tmp_dir = tmp_dir, |
| 234 | 244 | .tmp_dir_path = tmp_dir_path, |
| 235 | 245 | .child = &child, |
| 236 | | .allow_compiler_stderr = debug_log_args.items.len != 0, |
| 246 | .allow_compiler_stderr = allow_compiler_stderr, |
| 237 | 247 | .quiet = quiet, |
| 238 | 248 | .preserve_tmp_on_fatal = preserve_tmp, |
| 239 | 249 | .cc_child_args = &cc_child_args, |