authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-05 00:23:51+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-05 00:23:51+02:00
log73602f2a13765b5ea3c766c547b2fb088c950ed1
tree44a825c945e741b8a3e76234216ca64b29425a37
parentea46bd2772daa397e7287352f60da062a1ea4247
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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


1 files changed, 5 insertions(+), 1 deletions(-)

lib/std/Target.zig+5-1
......@@ -1912,7 +1912,11 @@ pub const Cpu = struct {
19121912 .powerpc64le => &powerpc.cpu.ppc64le,
19131913 .riscv32, .riscv32be => &riscv.cpu.baseline_rv32,
19141914 .riscv64, .riscv64be => &riscv.cpu.baseline_rv64,
1915 .s390x => &s390x.cpu.arch8, // gcc/clang do not have a generic s390x model.
1915 // gcc/clang do not have a generic s390x model.
1916 .s390x => switch (os.tag) {
1917 .zos => &s390x.cpu.arch10,
1918 else => &s390x.cpu.arch8,
1919 },
19161920 .sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8.
19171921 .sparc64 => switch (os.tag) {
19181922 .solaris => &sparc.cpu.ultrasparc3,