aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorDavid Chase <drchase@google.com>2016-03-17 14:12:12 -0400
committerDavid Chase <drchase@google.com>2016-03-18 01:04:47 +0000
commit09a9ce60c7014ddff97690bf023ac5b2bfc142c7 (patch)
tree832fd216893abcb4a73aaf65cbc0c91e9953a3bc /src/make.bash
parent2cc42cf2a8a9a3f0fdd2d6169ca2fa3b9cffe48e (diff)
downloadgo-09a9ce60c7014ddff97690bf023ac5b2bfc142c7.tar.gz
go-09a9ce60c7014ddff97690bf023ac5b2bfc142c7.zip
cmd/compile: get gcflags to bootstrap; ssa debug opts for "all"
This is intended to help debug compiler problems that pop up in the bootstrap phase of make.bash. GO_GCFLAGS does not normally apply there. Options-for-all phases is intended to allow crude tracing (and full timing) by turning on timing for all phases, not just one. Phase names can also be specified using a regular expression, for example BOOT_GO_GCFLAGS=-d='ssa/~^.*scc$/off' \ GO_GCFLAGS='-d=ssa/~^.*scc$/off' ./make.bash I just added this because it was the fastest way to get me to a place where I could easily debug the compiler. Change-Id: I0781f3e7c19651ae7452fa25c2d54c9a245ef62d Reviewed-on: https://go-review.googlesource.com/20775 Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: David Chase <drchase@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/make.bash b/src/make.bash
index 21cc29730d..6e9c12901b 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -151,7 +151,8 @@ if [ "$1" = "--no-clean" ]; then
buildall=""
shift
fi
-./cmd/dist/dist bootstrap $buildall $GO_DISTFLAGS -v # builds go_bootstrap
+
+GO_GCFLAGS="$BOOT_GO_GCFLAGS" ./cmd/dist/dist bootstrap $buildall $GO_DISTFLAGS -v # builds go_bootstrap
# Delay move of dist tool to now, because bootstrap may clear tool directory.
mv cmd/dist/dist "$GOTOOLDIR"/dist
echo