std.Build: fix userInputOptionsFromArgs ResolvedTarget

it wasn't using the Target.Query like it was supposed to for the triple
This commit is contained in:
Andrew Kelley 2023-12-04 20:38:09 -07:00
parent 8c44954bc6
commit 3e52302644

View File

@ -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", .{