diff options
author | Russ Cox <rsc@golang.org> | 2015-01-14 11:50:21 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2015-01-14 18:49:21 +0000 |
commit | db47a2706fb1078f6c5ddbaabc5bc09615c0457b (patch) | |
tree | a253231ced31d09678241c162df9f2e0b3f1b70e /src/make.rc | |
parent | b46b9429f05362b2b2227861811e50b47b9ec928 (diff) | |
download | go-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-x | src/make.rc | 2 |
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 |