Skip to content

Commit 73602f2

Browse files
committed
std.Target: baseline model for s390x-zos should be arch10, not arch8
1 parent ea46bd2 commit 73602f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/std/Target.zig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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,

0 commit comments

Comments
 (0)