mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
fix std lib tests
This commit is contained in:
parent
dd45095ba1
commit
ad385649b9
2 changed files with 7 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue