]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: fix default GOOS/GOARCH for cross-compile
authorRuss Cox <rsc@golang.org>
Mon, 2 Mar 2015 00:42:03 +0000 (19:42 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 2 Mar 2015 17:51:47 +0000 (17:51 +0000)
commit86a7c85f83895d54a00d79e3cd0356c11de3a589
tree29893d2270e40d522d9dc6a92f3723083848ca0b
parent5324cf2d45387b534068cf651e2d18e5df25d0b9
cmd/dist: fix default GOOS/GOARCH for cross-compile

Before this CL, if you are on a darwin/amd64 machine and
cross-compile 9g for a linux/ppc64 machine, when you copy
9g over to that kind of machine and run it, you'll find it thinks
the default object target is darwin/amd64. Not useful.
Make the default target linux/ppc64 in this case. More useful.

Change-Id: I62f2e9cb5f60b3077a922b31cd023a9cb7a6cfda
Reviewed-on: https://go-review.googlesource.com/6407
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/dist/buildruntime.go