Function captureStdOut [src]
Prototype
pub fn captureStdOut(run: *Run) std.Build.LazyPath
Parameters
run: *Run
Source
pub fn captureStdOut(run: *Run) std.Build.LazyPath {
assert(run.stdio != .inherit);
if (run.captured_stdout) |output| return .{ .generated = .{ .file = &output.generated_file } };
const output = run.step.owner.allocator.create(Output) catch @panic("OOM");
output.* = .{
.prefix = "",
.basename = "stdout",
.generated_file = .{ .step = &run.step },
};
run.captured_stdout = output;
return .{ .generated = .{ .file = &output.generated_file } };
}