aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorGustavo Niemeyer <gustavo@niemeyer.net>2012-02-09 20:47:12 -0200
committerGustavo Niemeyer <gustavo@niemeyer.net>2012-02-09 20:47:12 -0200
commit54f1e1b1634cc0292fa8a1ecaf2569caafb257bf (patch)
treeced1a2db21883bc20885a5d59b1cc624fac1b17f /src/make.bash
parenteb02b9cf9c2593d135b504a22f404f33d733e1b7 (diff)
downloadgo-54f1e1b1634cc0292fa8a1ecaf2569caafb257bf.tar.xz
cmd/dist: fix GOROOT_FINAL
R=rsc, gustavo CC=golang-dev https://golang.org/cl/5642045
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/make.bash b/src/make.bash
index 32a91a2fc9..55a292eba4 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -47,7 +47,9 @@ done
echo '# Building C bootstrap tool.'
mkdir -p ../bin/tool
-DEFGOROOT='-DDEFAULT_GOROOT="'"$(cd .. && pwd)"'"'
+export GOROOT="$(cd .. && pwd)"
+GOROOT_FINAL="${GOROOT_FINAL:-$GOROOT}"
+DEFGOROOT='-DGOROOT_FINAL="'"$GOROOT_FINAL"'"'
gcc -O2 -Wall -Werror -o ../bin/tool/dist -Icmd/dist "$DEFGOROOT" cmd/dist/*.c
echo