mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
std.Target.Query: fix regression with windows os version range
somebody left a landmine here without even a comment to warn about it
This commit is contained in:
parent
77420af9d0
commit
8d5da55588
@ -460,7 +460,9 @@ pub fn zigTriple(self: Query, allocator: Allocator) Allocator.Error![]u8 {
|
||||
try formatVersion(v, result.writer());
|
||||
},
|
||||
.windows => |v| {
|
||||
try result.writer().print("...{s}", .{v});
|
||||
// This is counting on a custom format() function defined on `WindowsVersion`
|
||||
// to add a prefix '.' and make there be a total of three dots.
|
||||
try result.writer().print("..{s}", .{v});
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user