aboutsummaryrefslogtreecommitdiff
path: root/src/all.bash
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-02-13 22:31:51 -0500
committerRuss Cox <rsc@golang.org>2012-02-13 22:31:51 -0500
commit7b848c69647c52d69127ccef79cc7d01c0ec02c6 (patch)
treeabad1d70e9aced9f6cd2804868e80f19bba8365c /src/all.bash
parent569ef7d49e36048aeca92e387e934d5a53276949 (diff)
downloadgo-7b848c69647c52d69127ccef79cc7d01c0ec02c6.tar.gz
go-7b848c69647c52d69127ccef79cc7d01c0ec02c6.zip
cmd/dist: cross-compiling fixes
This CL makes it possible to run make.bash with GOOS and GOARCH set to something other than the native host GOOS and GOARCH. As part of the CL, the tool directory moves from bin/tool/ to pkg/tool/goos_goarch where goos and goarch are the values for the host system (running the build), not the target. pkg/ is not technically appropriate, but C objects are there now tool (pkg/obj/) so this puts all the generated binaries in one place (rm -rf $GOROOT/pkg cleans everything). Including goos_goarch in the name allows different systems to share a single $GOROOT on a shared file system. Fixes #2920. R=golang-dev, r CC=golang-dev https://golang.org/cl/5645093
Diffstat (limited to 'src/all.bash')
-rwxr-xr-xsrc/all.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/all.bash b/src/all.bash
index d80a09d116..932b65dc07 100755
--- a/src/all.bash
+++ b/src/all.bash
@@ -9,5 +9,5 @@ if [ ! -f make.bash ]; then
exit 1
fi
. ./make.bash --no-banner
-bash run.bash --no-rebuild
-../bin/tool/dist banner # print build info
+bash run.bash --no-rebuild --banner
+$GOTOOLDIR/dist banner # print build info