From 2506fd43d463b5fe5e5c89982a6fea4a1602908b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 15 Feb 2012 11:48:17 -0500 Subject: 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 --- src/make.bash | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/make.bash') 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 -- cgit v1.3-5-g9baa