| author | |
| committer | |
| log | ad385649b985c53ddec530c627dccbe30c0ce0a6 |
| tree | 774be9b4717210f5fcc2985af223d35a10dd8f2d |
| parent | dd45095ba13217021551f4988953f7e337f9a694 |
2 files changed, 7 insertions(+), 2 deletions(-)
lib/std/Build/Step/Options.zig+6-1| ... | @@ -294,7 +294,12 @@ test Options { | ... | @@ -294,7 +294,12 @@ test Options { |
| 294 | var arena = std.heap.ArenaAllocator.init(std.testing.allocator); | 294 | var arena = std.heap.ArenaAllocator.init(std.testing.allocator); |
| 295 | defer arena.deinit(); | 295 | defer arena.deinit(); |
| 296 | 296 | ||
| 297 | const host = try std.zig.system.NativeTargetInfo.detect(.{}); | 297 | const detected = try std.zig.system.NativeTargetInfo.detect(.{}); |
| 298 | const host: std.Build.ResolvedTarget = .{ | ||
| 299 | .query = .{}, | ||
| 300 | .target = detected.target, | ||
| 301 | .dynamic_linker = detected.dynamic_linker, | ||
| 302 | }; | ||
| 298 | 303 | ||
| 299 | var cache: std.Build.Cache = .{ | 304 | var cache: std.Build.Cache = .{ |
| 300 | .gpa = arena.allocator(), | 305 | .gpa = arena.allocator(), |
lib/std/zig.zig+1-1| ... | @@ -212,7 +212,7 @@ pub const BuildId = union(enum) { | ... | @@ -212,7 +212,7 @@ pub const BuildId = union(enum) { |
| 212 | hexstring: HexString, | 212 | hexstring: HexString, |
| 213 | 213 | ||
| 214 | pub fn eql(a: BuildId, b: BuildId) bool { | 214 | pub fn eql(a: BuildId, b: BuildId) bool { |
| 215 | const Tag = @TypeOf(BuildId).Union.tag_type.?; | 215 | const Tag = @typeInfo(BuildId).Union.tag_type.?; |
| 216 | const a_tag: Tag = a; | 216 | const a_tag: Tag = a; |
| 217 | const b_tag: Tag = b; | 217 | const b_tag: Tag = b; |
| 218 | if (a_tag != b_tag) return false; | 218 | if (a_tag != b_tag) return false; |