Skip to content

Commit d1bf87e

Browse files
committed
std.Target: make ultrasparc3 the baseline for sparc64-solaris
llvm/llvm-project#149990
1 parent a838090 commit d1bf87e

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
@@ -1852,6 +1852,10 @@ pub const Cpu = struct {
18521852
.riscv64 => &riscv.cpu.baseline_rv64,
18531853
.s390x => &s390x.cpu.arch8, // gcc/clang do not have a generic s390x model.
18541854
.sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8.
1855+
.sparc64 => switch (os.tag) {
1856+
.solaris => &sparc.cpu.ultrasparc3,
1857+
else => generic(arch),
1858+
},
18551859
.x86 => &x86.cpu.pentium4,
18561860
.x86_64 => switch (os.tag) {
18571861
.driverkit => &x86.cpu.nehalem,

0 commit comments

Comments
 (0)