From 6efadf8a805c95c9662de156206f4c3ba015e366 Mon Sep 17 00:00:00 2001 From: Eric Chan Date: Thu, 23 May 2024 13:27:41 +1000 Subject: [PATCH] Update std.zig.CrossTarget deprecation --- examples/virtio/build.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/virtio/build.zig b/examples/virtio/build.zig index c920f1cda..2032f655e 100644 --- a/examples/virtio/build.zig +++ b/examples/virtio/build.zig @@ -18,13 +18,13 @@ const ConfigOptions = enum { const Target = struct { board: MicrokitBoard, - zig_target: std.zig.CrossTarget, + zig_target: std.Target.Query, }; const targets = [_]Target { .{ .board = MicrokitBoard.qemu_arm_virt, - .zig_target = std.zig.CrossTarget{ + .zig_target = std.Target.Query{ .cpu_arch = .aarch64, .cpu_model = .{ .explicit = &std.Target.arm.cpu.cortex_a53 }, .os_tag = .freestanding, @@ -33,7 +33,7 @@ const targets = [_]Target { }, .{ .board = MicrokitBoard.odroidc4, - .zig_target = std.zig.CrossTarget{ + .zig_target = std.Target.Query{ .cpu_arch = .aarch64, .cpu_model = .{ .explicit = &std.Target.arm.cpu.cortex_a55 }, .os_tag = .freestanding, @@ -74,7 +74,7 @@ fn fileExists(path: []const u8) bool { return true; } -fn findTarget(board: MicrokitBoard) std.zig.CrossTarget { +fn findTarget(board: MicrokitBoard) std.Target.Query { for (targets) |target| { if (board == target.board) { return target.zig_target;