From 157a554e6d2e83e4476d1c795af4519914a69a8b Mon Sep 17 00:00:00 2001 From: Austin Rude Date: Wed, 15 Dec 2021 11:45:24 -0700 Subject: [PATCH] Update build.zig to use the std.target.Arch enum --- zig-ecs/build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zig-ecs/build.zig b/zig-ecs/build.zig index a59f7c4..5648d61 100644 --- a/zig-ecs/build.zig +++ b/zig-ecs/build.zig @@ -6,7 +6,7 @@ pub fn build(b: *Builder) void { const build_mode = b.standardReleaseOptions(); // use a different cache folder for macos arm builds - b.cache_root = if (builtin.os.tag == .macos and builtin.arch == builtin.Arch.aarch64) "zig-arm-cache" else "zig-cache"; + b.cache_root = if (builtin.os.tag == .macos and builtin.target.cpu.arch == .aarch64) "zig-arm-cache" else "zig-cache"; const examples = [_][2][]const u8{ [_][]const u8{ "view_vs_group", "examples/view_vs_group.zig" },