aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-05-26 16:20:07 -0400
committerGitHub <noreply@github.com>2024-05-26 16:20:07 -0400
commit591bbafee37126dab2e035be717bb928c5953155 (patch)
tree5e71e6f4aba07b1852c03c69f94f09d4a084f717 /src/Compilation.zig
parentb9b7f1852308cf41bef511b9ccb3e24e353bf109 (diff)
parentaa463adc91d4fb356595b8f7d0af3801c0623e1e (diff)
downloadzig-591bbafee37126dab2e035be717bb928c5953155.tar.gz
zig-591bbafee37126dab2e035be717bb928c5953155.zip
Merge pull request #20049 from ziglang/std.process.Child
std: restructure child process namespace
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 5675c82222..03b981812e 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -1935,7 +1935,7 @@ pub fn getTarget(self: Compilation) Target {
pub fn hotCodeSwap(
comp: *Compilation,
prog_node: *std.Progress.Node,
- pid: std.ChildProcess.Id,
+ pid: std.process.Child.Id,
) !void {
const lf = comp.bin_file.?;
lf.child_pid = pid;
@@ -4615,7 +4615,7 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: *std.P
log.warn("failed to delete '{s}': {s}", .{ dep_file_path, @errorName(err) });
};
if (std.process.can_spawn) {
- var child = std.ChildProcess.init(argv.items, arena);
+ var child = std.process.Child.init(argv.items, arena);
if (comp.clang_passthrough_mode) {
child.stdin_behavior = .Inherit;
child.stdout_behavior = .Inherit;
@@ -4974,7 +4974,7 @@ fn spawnZigRc(
var node_name: std.ArrayListUnmanaged(u8) = .{};
defer node_name.deinit(arena);
- var child = std.ChildProcess.init(argv, arena);
+ var child = std.process.Child.init(argv, arena);
child.stdin_behavior = .Ignore;
child.stdout_behavior = .Pipe;
child.stderr_behavior = .Pipe;