From 047c6ec6dabdc646b3e98531d6c8f0905aebc4a3 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 8 Oct 2008 09:46:20 -0700 Subject: [PATCH] check $GOROOT before diving into build R=r DELTA=6 (6 added, 0 deleted, 0 changed) OCL=16726 CL=16726 --- src/make.bash | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.50.0