mirror of
https://github.com/golang/go
synced 2024-11-17 15:54:39 -07:00
cmd/dist: test goos, not gohostos, in tester.extLink
This error dates back to when the method was introduced in CL 6531. It only matters for the rare case of building tests on one GOOS and running them on another, and only makes a difference for the rare case where one GOOS supports external linking and another does not. Change-Id: I1a7abfb0a5bbec49ddbcd9c1a4f5c0ec43a8095c Reviewed-on: https://go-review.googlesource.com/c/go/+/463991 Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Auto-Submit: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
e1f9499ecf
commit
00e1091bfd
2
src/cmd/dist/test.go
vendored
2
src/cmd/dist/test.go
vendored
@ -1087,7 +1087,7 @@ func (t *tester) out(v string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *tester) extLink() bool {
|
func (t *tester) extLink() bool {
|
||||||
pair := gohostos + "-" + goarch
|
pair := goos + "-" + goarch
|
||||||
switch pair {
|
switch pair {
|
||||||
case "aix-ppc64",
|
case "aix-ppc64",
|
||||||
"android-arm", "android-arm64",
|
"android-arm", "android-arm64",
|
||||||
|
Loading…
Reference in New Issue
Block a user