Skip to content

Commit

Permalink
Update std.zig.CrossTarget deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
erichchan999 committed May 23, 2024
1 parent e33ca24 commit 6efadf8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/virtio/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6efadf8

Please sign in to comment.