mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 21:38:33 +00:00
std.Build.RunStep: fix captureStdOut function return type
The return type of the captureStdOut function is incorrect. Replace *std.Build.GeneratedFile with std.Build.FileSource.
This commit is contained in:
parent
528b66f6ec
commit
4374ce51b0
@ -304,7 +304,7 @@ pub fn captureStdErr(self: *RunStep) std.Build.FileSource {
|
||||
return .{ .generated = &output.generated_file };
|
||||
}
|
||||
|
||||
pub fn captureStdOut(self: *RunStep) *std.Build.GeneratedFile {
|
||||
pub fn captureStdOut(self: *RunStep) std.Build.FileSource {
|
||||
assert(self.stdio != .inherit);
|
||||
|
||||
if (self.captured_stdout) |output| return .{ .generated = &output.generated_file };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user