From: Srinivas Pokala Date: Mon, 21 Apr 2025 07:42:45 +0000 (+0200) Subject: cmd/go/internal/work: update minimum supported s390x version on go X-Git-Tag: go1.25rc1~248 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2b3794e3e8a0ecf9d0ff7d8689ca9cdaea974e08;p=gostls13.git 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 Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI --- diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go index 6fc865421d..63fd13f754 100644 --- a/src/cmd/go/internal/work/exec.go +++ b/src/cmd/go/internal/work/exec.go @@ -2587,7 +2587,8 @@ func (b *Builder) gccArchArgs() []string { case "arm": return []string{"-marm"} // not thumb case "s390x": - return []string{"-m64", "-march=z196"} + // minimum supported s390x version on Go is z13 + return []string{"-m64", "-march=z13"} case "mips64", "mips64le": args := []string{"-mabi=64"} if cfg.GOMIPS64 == "hardfloat" {