zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 691c7cb3cd3cc6cb4f6324d0ad4a5c3e2e8ff94c (tree)
parent c517e65d8f5d7c06aea56dfce5527843d7711a99
Author: Veikka Tuominen <git@vexu.eu>
Date:   Mon, 28 Mar 2022 17:32:20 +0300

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

Diffstat:
Mlib/std/build/OptionsStep.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/std/build/OptionsStep.zig b/lib/std/build/OptionsStep.zig @@ -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 }; }