std.build: fix functions returning address of by value parameter

This commit is contained in:
Veikka Tuominen
2022-03-28 17:32:20 +03:00
committed by Andrew Kelley
parent c517e65d8f
commit 691c7cb3cd

View File

@@ -199,11 +199,11 @@ pub fn addOptionArtifact(self: *OptionsStep, name: []const u8, artifact: *LibExe
self.step.dependOn(&artifact.step);
}
pub fn getPackage(self: OptionsStep, package_name: []const u8) build.Pkg {
pub fn getPackage(self: *OptionsStep, package_name: []const u8) build.Pkg {
return .{ .name = package_name, .path = self.getSource() };
}
pub fn getSource(self: OptionsStep) FileSource {
pub fn getSource(self: *OptionsStep) FileSource {
return .{ .generated = &self.generated_file };
}