cmd/go/internal/work: update minimum supported s390x version on go

This updates cgo support for s390x changing from z196 to z13, as
z13 is the minimum machine level running on go for s390x.

Change-Id: I1a102294b2108c35ddb1428bf287ce83debaeac8
Reviewed-on: https://go-review.googlesource.com/c/go/+/666995
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Srinivas Pokala 2025-04-21 09:42:45 +02:00 committed by Keith Randall
parent f529d56508
commit 2b3794e3e8

View file

@ -2587,7 +2587,8 @@ func (b *Builder) gccArchArgs() []string {
case "arm": case "arm":
return []string{"-marm"} // not thumb return []string{"-marm"} // not thumb
case "s390x": case "s390x":
return []string{"-m64", "-march=z196"} // minimum supported s390x version on Go is z13
return []string{"-m64", "-march=z13"}
case "mips64", "mips64le": case "mips64", "mips64le":
args := []string{"-mabi=64"} args := []string{"-mabi=64"}
if cfg.GOMIPS64 == "hardfloat" { if cfg.GOMIPS64 == "hardfloat" {