Skip to content

Commit 2e30d15

Browse files
committed
std.Target: make ultrasparc3 the baseline for sparc64-solaris
llvm/llvm-project#149990
1 parent 82c7086 commit 2e30d15

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
@@ -1908,6 +1908,10 @@ pub const Cpu = struct {
19081908
.riscv64, .riscv64be => &riscv.cpu.baseline_rv64,
19091909
.s390x => &s390x.cpu.arch8, // gcc/clang do not have a generic s390x model.
19101910
.sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8.
1911+
.sparc64 => switch (os.tag) {
1912+
.solaris => &sparc.cpu.ultrasparc3,
1913+
else => generic(arch),
1914+
},
19111915
.x86 => &x86.cpu.pentium4,
19121916
.x86_64 => switch (os.tag) {
19131917
.driverkit => &x86.cpu.nehalem,

0 commit comments

Comments
 (0)