mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 04:24:33 +01:00
std.Target: Pick better baseline CPU models for darwin and ps4/ps5 on x86_64.
These are sourced from getX86TargetCPU() in Clang.
This commit is contained in:
parent
ea987faa85
commit
79717740bd
1 changed files with 7 additions and 0 deletions
|
|
@ -1872,6 +1872,13 @@ pub const Cpu = struct {
|
|||
.s390x => &s390x.cpu.arch8, // gcc/clang do not have a generic s390x model.
|
||||
.sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8.
|
||||
.x86 => &x86.cpu.pentium4,
|
||||
.x86_64 => switch (os.tag) {
|
||||
.driverkit => &x86.cpu.nehalem,
|
||||
.ios, .macos, .tvos, .visionos, .watchos => &x86.cpu.core2,
|
||||
.ps4 => &x86.cpu.btver2,
|
||||
.ps5 => &x86.cpu.znver2,
|
||||
else => generic(arch),
|
||||
},
|
||||
.xcore => &xcore.cpu.xs1b_generic,
|
||||
|
||||
else => generic(arch),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue