motiejus/zig

fork of https://codeberg.org/ziglang/zig
git clone https://git.jakstys.lt/motiejus/zig.git
Log | Tree | Refs | README | LICENSE

commit 3e52302644e29fec3917385f2b998f53941f8376 (tree)
parent 8c44954bc6a91ae66f5aea92ea8380c28b50b3f0
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon,  4 Dec 2023 20:38:09 -0700

std.Build: fix userInputOptionsFromArgs ResolvedTarget

it wasn't using the Target.Query like it was supposed to for the triple

Diffstat:
Mlib/std/Build.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/Build.zig b/lib/std/Build.zig @@ -390,7 +390,7 @@ fn userInputOptionsFromArgs(allocator: Allocator, args: anytype) UserInputOption ResolvedTarget => { user_input_options.put(field.name, .{ .name = field.name, - .value = .{ .scalar = v.target.zigTriple(allocator) catch @panic("OOM") }, + .value = .{ .scalar = v.query.zigTriple(allocator) catch @panic("OOM") }, .used = false, }) catch @panic("OOM"); user_input_options.put("cpu", .{