diff options
author | Shanqing Cai <cais@google.com> | 2016-04-28 10:34:56 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-04-28 11:41:12 -0700 |
commit | de6d48ce9298effa59a06ef8e0f83b2fbed5104f (patch) | |
tree | f9fe9ed199f23f4d756c2f2a3cc884f27d1894fc /configure | |
parent | f7eba2a4c8461012c31856935c2645590d1f0d37 (diff) |
Check for protobuf submodule in configure
so that the builds can fail fast in cases where the --recurse-submodules flag is missed during git clone.
Change: 121039992
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -2,6 +2,17 @@ DO_NOT_SUBMIT_WARNING="Unofficial setting. DO NOT SUBMIT!!!" +## Verify that the submodule google/protobuf is available +# TODO(cais): Remove this check once protobuf is no longer depended upon +if [[ ! -f "google/protobuf/protobuf.bzl" ]]; then + echo "ERROR: It appears that the required submodule google/protobuf is not "\ +"available in this TensorFlow git clone." + echo "Please be sure to use the --recurse-submodules flag when performing "\ +"git clone of TensorFlow." + + exit 1 +fi + ## Set up python-related environment settings while true; do fromuser="" |