std.zig.system.darwin.macos: Enable Apple M4 CPU detection.

This commit is contained in:
Alex Rønne Petersen 2024-08-30 16:29:30 +02:00 committed by Andrew Kelley
parent a99c883cf0
commit 9b60aa0adc

View File

@ -423,7 +423,7 @@ pub fn detectNativeCpuAndFeatures() ?Target.Cpu {
.ARM_IBIZA => &Target.aarch64.cpu.apple_m3, // base .ARM_IBIZA => &Target.aarch64.cpu.apple_m3, // base
.ARM_LOBOS => &Target.aarch64.cpu.apple_m3, // pro .ARM_LOBOS => &Target.aarch64.cpu.apple_m3, // pro
.ARM_PALMA => &Target.aarch64.cpu.apple_m3, // max .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{ return Target.Cpu{