summaryrefslogtreecommitdiff
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
commit56435395989fa49773b9f83dcf3a4344447035e8 (patch)
tree406b0e9686a3e8a0379b937e1ab81bc1025d0e39 /src/all.bash
parent49b3d319d5fac1b92c9114d13d703984263eb4bb (diff)
downloadgo-56435395989fa49773b9f83dcf3a4344447035e8.tar.gz
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 issue 2920. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/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 d80a09d11..932b65dc0 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