authorgravatar for me@gasinfinity.devGasInfinity <me@gasinfinity.dev> 2025-08-21 15:09:59+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-22 04:14:53+02:00
log306176046e6ae5e30bc58e5f3bcf786159e367f2
tree706177e7347038de66f85bc928633fdd6c50e3a5
parentfca2a7a638a6b2b7f4949620567673b76f052edc

chore(std.Target): explicitly set baseline only to `arm` with 3ds

* `arm` is the only supported tag for 3ds Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>

1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/Target.zig+2-1
......@@ -1843,10 +1843,11 @@ pub const Cpu = struct {
18431843 pub fn baseline(arch: Arch, os: Os) *const Model {
18441844 return switch (arch) {
18451845 .amdgcn => &amdgcn.cpu.gfx906,
1846 .arm, .armeb, .thumb, .thumbeb => switch (os.tag) {
1846 .arm => switch (os.tag) {
18471847 .@"3ds" => &arm.cpu.mpcore,
18481848 else => &arm.cpu.baseline,
18491849 },
1850 .armeb, .thumb, .thumbeb => &arm.cpu.baseline,
18501851 .aarch64 => switch (os.tag) {
18511852 .driverkit, .macos => &aarch64.cpu.apple_m1,
18521853 .ios, .tvos => &aarch64.cpu.apple_a7,