aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-02-15 11:48:17 -0500
committerRuss Cox <rsc@golang.org>2012-02-15 11:48:17 -0500
commit2506fd43d463b5fe5e5c89982a6fea4a1602908b (patch)
treedf587c6bd8c9f92ba1f8dac209c057416c54831c /src/make.bash
parentaef23cc49e745e619c10bd8e4f9d4555de3a9c5c (diff)
downloadgo-2506fd43d463b5fe5e5c89982a6fea4a1602908b.tar.xz
build: add make.bash --no-clean option
Makes it possible to run GOARCH=amd64 make.bash GOARCH=386 make.bash --no-clean to avoid deleting some of the work done by the first one. R=golang-dev CC=golang-dev https://golang.org/cl/5673056
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/make.bash b/src/make.bash
index 43183e786b..cb7051bab3 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -75,8 +75,12 @@ if [ "$1" = "--dist-tool" ]; then
fi
echo "# Building compilers and Go bootstrap tool for host, $GOHOSTOS/$GOHOSTARCH."
-./cmd/dist/dist bootstrap -a -v # builds go_bootstrap
-# Delay move of dist tool to now, because bootstrap cleared tool directory.
+buildall="-a"
+if [ "$1" = "--no-clean" ]; then
+ buildall=""
+fi
+./cmd/dist/dist bootstrap $buildall -v # builds go_bootstrap
+# Delay move of dist tool to now, because bootstrap may clear tool directory.
mv cmd/dist/dist $GOTOOLDIR/dist
$GOTOOLDIR/go_bootstrap clean -i std
echo