Function captureStdErr [src]

Prototype

pub fn captureStdErr(run: *Run) std.Build.LazyPath

Parameters

run: *Run

Source

pub fn captureStdErr(run: *Run) std.Build.LazyPath { assert(run.stdio != .inherit); if (run.captured_stderr) |output| return .{ .generated = .{ .file = &output.generated_file } }; const output = run.step.owner.allocator.create(Output) catch @panic("OOM"); output.* = .{ .prefix = "", .basename = "stderr", .generated_file = .{ .step = &run.step }, }; run.captured_stderr = output; return .{ .generated = .{ .file = &output.generated_file } }; }