From e919fbea9fd62e55ebbfb0739a2a468c93673e93 Mon Sep 17 00:00:00 2001 From: Krzysztof Wolicki Date: Fri, 29 Sep 2023 20:14:42 +0200 Subject: [PATCH] Step.Run: fix assert of the wrong value (#17303) closes #16866 --- lib/std/Build/Step/Run.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/Build/Step/Run.zig b/lib/std/Build/Step/Run.zig index 8659622f54..66e9224fe5 100644 --- a/lib/std/Build/Step/Run.zig +++ b/lib/std/Build/Step/Run.zig @@ -993,7 +993,7 @@ fn spawnChildAndCollect( if (self.captured_stdout != null) child.stdout_behavior = .Pipe; if (self.captured_stderr != null) child.stderr_behavior = .Pipe; if (self.stdin != .none) { - assert(child.stdin_behavior != .Inherit); + assert(self.stdio != .inherit); child.stdin_behavior = .Pipe; }