Commit e919fbea9f

Krzysztof Wolicki <der.teufel.mail@gmail.com>
2023-09-29 20:14:42
Step.Run: fix assert of the wrong value (#17303)
closes #16866
1 parent c07d6e4
Changed files (1)
lib
std
Build
Step
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;
     }