std.build: fix functions returning address of by value parameter
This commit is contained in:
committed by
Andrew Kelley
parent
c517e65d8f
commit
691c7cb3cd
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user