aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build.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 /lib/std/Build.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 'lib/std/Build.zig')
-rw-r--r--lib/std/Build.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/Build.zig b/lib/std/Build.zig
index 6c8ba75730..a2e8a7c564 100644
--- a/lib/std/Build.zig
+++ b/lib/std/Build.zig
@@ -178,7 +178,7 @@ pub const RunError = error{
ExitCodeFailure,
ProcessTerminated,
ExecNotSupported,
-} || std.ChildProcess.SpawnError;
+} || std.process.Child.SpawnError;
pub const PkgConfigError = error{
PkgConfigCrashed,
@@ -1719,7 +1719,7 @@ pub fn runAllowFail(
b: *Build,
argv: []const []const u8,
out_code: *u8,
- stderr_behavior: std.ChildProcess.StdIo,
+ stderr_behavior: std.process.Child.StdIo,
) RunError![]u8 {
assert(argv.len != 0);
@@ -1727,7 +1727,7 @@ pub fn runAllowFail(
return error.ExecNotSupported;
const max_output_size = 400 * 1024;
- var child = std.ChildProcess.init(argv, b.allocator);
+ var child = std.process.Child.init(argv, b.allocator);
child.stdin_behavior = .Ignore;
child.stdout_behavior = .Pipe;
child.stderr_behavior = stderr_behavior;