From 9b60aa0adc126bf2a966ec42f069c770851774f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Fri, 30 Aug 2024 16:29:30 +0200 Subject: [PATCH] std.zig.system.darwin.macos: Enable Apple M4 CPU detection. --- lib/std/zig/system/darwin/macos.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/zig/system/darwin/macos.zig b/lib/std/zig/system/darwin/macos.zig index c0a9aa47d7..3201f102b6 100644 --- a/lib/std/zig/system/darwin/macos.zig +++ b/lib/std/zig/system/darwin/macos.zig @@ -423,7 +423,7 @@ pub fn detectNativeCpuAndFeatures() ?Target.Cpu { .ARM_IBIZA => &Target.aarch64.cpu.apple_m3, // base .ARM_LOBOS => &Target.aarch64.cpu.apple_m3, // pro .ARM_PALMA => &Target.aarch64.cpu.apple_m3, // max - // .ARM_DONAN => &Target.aarch64.cpu.apple_m4, // decl not available until llvm 19 + .ARM_DONAN => &Target.aarch64.cpu.apple_m4, }; return Target.Cpu{