]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/bootstrap.bash
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / src / bootstrap.bash
index 1e4f1c5081348ccb235cf9d013de7c2432c5b414..5a97d52e5f98197f6d53b0df756b91df3de8a1b5 100755 (executable)
 set -e
 
 if [ "$GOOS" = "" -o "$GOARCH" = "" ]; then
-       echo "usage: GOOS=os GOARCH=arch ./bootstrap.bash" >&2
+       echo "usage: GOOS=os GOARCH=arch ./bootstrap.bash [-force]" >&2
        exit 2
 fi
 
+forceflag=""
+if [ "$1" = "-force" ]; then
+       forceflag=-force
+       shift
+fi
+
 targ="../../go-${GOOS}-${GOARCH}-bootstrap"
 if [ -e $targ ]; then
        echo "$targ already exists; remove before continuing"
@@ -47,7 +53,7 @@ echo
 echo "#### Building $targ"
 echo
 cd src
-./make.bash --no-banner
+./make.bash --no-banner $forceflag
 gohostos="$(../bin/go env GOHOSTOS)"
 gohostarch="$(../bin/go env GOHOSTARCH)"
 goos="$(../bin/go env GOOS)"