Skip to content

Commit

Permalink
cmd/dist: test goos, not gohostos, in tester.extLink
Browse files Browse the repository at this point in the history
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 <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Bryan Mills <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
  • Loading branch information
ianlancetaylor authored and gopherbot committed Jan 31, 2023
1 parent e1f9499 commit 00e1091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/dist/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ func (t *tester) out(v string) {
}

func (t *tester) extLink() bool {
pair := gohostos + "-" + goarch
pair := goos + "-" + goarch
switch pair {
case "aix-ppc64",
"android-arm", "android-arm64",
Expand Down

0 comments on commit 00e1091

Please sign in to comment.