diff options
| author | GasInfinity <58077502+GasInfinity@users.noreply.github.com> | 2025-08-21 15:09:59 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-08-22 04:14:53 +0200 |
| commit | 306176046e6ae5e30bc58e5f3bcf786159e367f2 (patch) | |
| tree | 706177e7347038de66f85bc928633fdd6c50e3a5 /lib/std | |
| parent | fca2a7a638a6b2b7f4949620567673b76f052edc (diff) | |
| download | zig-306176046e6ae5e30bc58e5f3bcf786159e367f2.tar.gz zig-306176046e6ae5e30bc58e5f3bcf786159e367f2.zip | |
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>
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/Target.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/Target.zig b/lib/std/Target.zig index 287be4e67d..06a229ebd6 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -1843,10 +1843,11 @@ pub const Cpu = struct { pub fn baseline(arch: Arch, os: Os) *const Model { return switch (arch) { .amdgcn => &amdgcn.cpu.gfx906, - .arm, .armeb, .thumb, .thumbeb => switch (os.tag) { + .arm => switch (os.tag) { .@"3ds" => &arm.cpu.mpcore, else => &arm.cpu.baseline, }, + .armeb, .thumb, .thumbeb => &arm.cpu.baseline, .aarch64 => switch (os.tag) { .driverkit, .macos => &aarch64.cpu.apple_m1, .ios, .tvos => &aarch64.cpu.apple_a7, |
