Skip to content

Commit 561d4a5

Browse files
committed
std.Target: make ultrasparc3 the baseline for sparc64-solaris
llvm/llvm-project#149990
1 parent 4eebdf5 commit 561d4a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/std/Target.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,6 +1903,10 @@ pub const Cpu = struct {
19031903
.riscv64 => &riscv.cpu.baseline_rv64,
19041904
.s390x => &s390x.cpu.arch8, // gcc/clang do not have a generic s390x model.
19051905
.sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8.
1906+
.sparc64 => switch (os.tag) {
1907+
.solaris => &sparc.cpu.ultrasparc3,
1908+
else => generic(arch),
1909+
},
19061910
.x86 => &x86.cpu.pentium4,
19071911
.x86_64 => switch (os.tag) {
19081912
.driverkit => &x86.cpu.nehalem,

0 commit comments

Comments
 (0)