aboutsummaryrefslogtreecommitdiff
path: root/src/make.rc
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-01-14 11:50:21 -0500
committerRuss Cox <rsc@golang.org>2015-01-14 18:49:21 +0000
commitdb47a2706fb1078f6c5ddbaabc5bc09615c0457b (patch)
treea253231ced31d09678241c162df9f2e0b3f1b70e /src/make.rc
parentb46b9429f05362b2b2227861811e50b47b9ec928 (diff)
downloadgo-db47a2706fb1078f6c5ddbaabc5bc09615c0457b.tar.gz
go-db47a2706fb1078f6c5ddbaabc5bc09615c0457b.zip
[dev.cc] build: fix cross-compilation
Fixes #9574. Change-Id: Ifd7ecccb25e934f9aba284b2d72b6b22f18cb0b6 Reviewed-on: https://go-review.googlesource.com/2812 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/make.rc')
-rwxr-xr-xsrc/make.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/make.rc b/src/make.rc
index 2d2076297e..761b93e995 100755
--- a/src/make.rc
+++ b/src/make.rc
@@ -58,7 +58,7 @@ if(! test -x $GOROOT_BOOTSTRAP/bin/go){
exit bootstrap
}
rm -f cmd/dist/dist
-GOROOT=$GOROOT_BOOTSTRAP $GOROOT_BOOTSTRAP/bin/go build -o cmd/dist/dist ./cmd/dist
+GOROOT=$GOROOT_BOOTSTRAP GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH $GOROOT_BOOTSTRAP/bin/go build -o cmd/dist/dist ./cmd/dist
eval `{./cmd/dist/dist env -9}
echo