aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/make.bash b/src/make.bash
index 3ff193145e..df70e41f48 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -6,6 +6,12 @@
set -e
export MAKEFLAGS=-j4
+if ! test -f $GOROOT/include/u.h
+then
+ echo '$GOROOT is not set correctly or not exported' 1>&2
+ exit 1
+fi
+
bash clean.bash
for i in lib9 libbio libmach_amd64 libregexp cmd runtime lib