zig build: inherit stdin for running commands

This commit is contained in:
Andrew Kelley
2017-05-03 11:27:42 -04:00
parent 3b921afc69
commit cceaa73ff2

View File

@@ -539,7 +539,7 @@ pub const Builder = struct {
}
var child = os.ChildProcess.spawn(exe_path, args, cwd, env_map,
StdIo.Ignore, StdIo.Inherit, StdIo.Inherit, self.allocator) %% |err|
StdIo.Inherit, StdIo.Inherit, StdIo.Inherit, self.allocator) %% |err|
{
%%io.stderr.printf("Unable to spawn {}: {}\n", exe_path, @errorName(err));
return err;