aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.bash
diff options
context:
space:
mode:
authorDmitri Shuralyov <dmitshur@golang.org>2022-12-19 16:50:24 -0500
committerGopher Robot <gobot@golang.org>2023-01-20 17:52:26 +0000
commit399ad79fa6606c9754e2345a23536ccb15502083 (patch)
treeb0f718aedffff5b5738a52fbd7e8712dff9bc3b4 /src/bootstrap.bash
parente7495d873703b0f1602d796b147e56b5c432b1d5 (diff)
downloadgo-399ad79fa6606c9754e2345a23536ccb15502083.tar.gz
go-399ad79fa6606c9754e2345a23536ccb15502083.zip
cmd/dist: add map of broken ports and -force flag
It's empty so far. The next CL adds linux/sparc64. Also add -force flag to the bootstrap.bash script so that it's possible to use it with broken ports. For #56679. Change-Id: I09c733d0df0a68df34fb808eae29be010a6da461 Reviewed-on: https://go-review.googlesource.com/c/go/+/458515 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/bootstrap.bash')
-rwxr-xr-xsrc/bootstrap.bash10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bootstrap.bash b/src/bootstrap.bash
index 1e4f1c5081..5a97d52e5f 100755
--- a/src/bootstrap.bash
+++ b/src/bootstrap.bash
@@ -21,10 +21,16 @@
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)"