aboutsummaryrefslogtreecommitdiffhomepage
path: root/compile.sh
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2015-04-16 14:30:49 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-04-16 18:38:29 +0000
commit24eaf9d8485294ffaff9fb455b36746b74bcc959 (patch)
treecd61e04f516633bfab584e16a4f34c66338e8452 /compile.sh
parentc3eaa6ccde151bbd4f2f0f0fa6e4a2fe6e2746b9 (diff)
Bazel compile.sh: test for existence of the protoc compiler
Tested with removing the protoc binaries from a github copy. Fixes #128. -- MOS_MIGRATED_REVID=91297812
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh
index 1fe218b09e..c4ff9bf394 100755
--- a/compile.sh
+++ b/compile.sh
@@ -198,6 +198,9 @@ msys*|mingw*)
done
esac
+[[ -x "${PROTOC-}" ]] \
+ || fail "Protobuf compiler not found in ${PROTOC-}"
+
mkdir -p fromhost
if [ ! -f fromhost/BUILD ]; then
write_fromhost_build