]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix StackCheckOutput on AIX
authorAustin Clements <austin@google.com>
Wed, 20 Apr 2022 16:24:09 +0000 (12:24 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 20 Apr 2022 20:02:07 +0000 (20:02 +0000)
commit58340240576a9ad254d90da4570e5e6afb913959
tree05ebe0de7dd2ce315b62979fcdc3f31b53614b7e
parenta2f7d9d95a84dedb6909bf1907d6857c2c4a2ef5
cmd/link: fix StackCheckOutput on AIX

This test forces GOARCH to amd64, but currently uses the default GOOS.
This works on every OS that supports amd64, which is every OS we
support except AIX. Hence, on AIX this fails with an unsupported
GOOS/GOARCH combination.

Fix this by forcing GOOS to linux.

Fixes #52451.

Change-Id: I9321dd6386c7ef0fe2b47d77ed900aafc53f2a46
Reviewed-on: https://go-review.googlesource.com/c/go/+/401334
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/link/internal/ld/stackcheck.go
src/cmd/link/internal/ld/stackcheck_test.go