mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
fix std lib tests
This commit is contained in:
parent
dd45095ba1
commit
ad385649b9
@ -294,7 +294,12 @@ test Options {
|
||||
var arena = std.heap.ArenaAllocator.init(std.testing.allocator);
|
||||
defer arena.deinit();
|
||||
|
||||
const host = try std.zig.system.NativeTargetInfo.detect(.{});
|
||||
const detected = try std.zig.system.NativeTargetInfo.detect(.{});
|
||||
const host: std.Build.ResolvedTarget = .{
|
||||
.query = .{},
|
||||
.target = detected.target,
|
||||
.dynamic_linker = detected.dynamic_linker,
|
||||
};
|
||||
|
||||
var cache: std.Build.Cache = .{
|
||||
.gpa = arena.allocator(),
|
||||
|
||||
@ -212,7 +212,7 @@ pub const BuildId = union(enum) {
|
||||
hexstring: HexString,
|
||||
|
||||
pub fn eql(a: BuildId, b: BuildId) bool {
|
||||
const Tag = @TypeOf(BuildId).Union.tag_type.?;
|
||||
const Tag = @typeInfo(BuildId).Union.tag_type.?;
|
||||
const a_tag: Tag = a;
|
||||
const b_tag: Tag = b;
|
||||
if (a_tag != b_tag) return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user