std.Target: baseline model for s390x-zos should be arch10, not arch8

This commit is contained in:
Alex Rønne Petersen 2025-10-05 00:23:51 +02:00
parent ea46bd2772
commit 73602f2a13
No known key found for this signature in database

View File

@ -1912,7 +1912,11 @@ pub const Cpu = struct {
.powerpc64le => &powerpc.cpu.ppc64le,
.riscv32, .riscv32be => &riscv.cpu.baseline_rv32,
.riscv64, .riscv64be => &riscv.cpu.baseline_rv64,
.s390x => &s390x.cpu.arch8, // gcc/clang do not have a generic s390x model.
// gcc/clang do not have a generic s390x model.
.s390x => switch (os.tag) {
.zos => &s390x.cpu.arch10,
else => &s390x.cpu.arch8,
},
.sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8.
.sparc64 => switch (os.tag) {
.solaris => &sparc.cpu.ultrasparc3,