aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yifei Feng <yifeif@google.com>2017-06-09 15:34:15 -0700
committerGravatar Yifei Feng <yifeif@google.com>2017-06-09 15:34:15 -0700
commit016c959eebee9ce9cbd2abd87cbf6491e7a56dbb (patch)
tree263d0486cb6f2d296235e608e7d7e802ee2420d4
parent504965336d1432ee96b4f0e9b78f65ee201e9be5 (diff)
Skip configure bazel version check on empty version string.
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index e1aaddabda..602124225f 100755
--- a/configure
+++ b/configure
@@ -162,8 +162,12 @@ bazel version > bazel.version
curr_bazel_version=$(head -n 1 bazel.version | cut -d ' ' -f3)
rm -f bazel.version
+
echo "You have bazel $curr_bazel_version installed."
-if [ "$(version "$MIN_BAZEL_VERSION")" -gt "$(version "$curr_bazel_version")" ]; then
+if [ -z "$curr_bazel_version" ]; then
+ echo "WARNING: current bazel installation is not a release version."
+ echo "Make sure you are running at least bazel $MIN_BAZEL_VERSION."
+elif [ "$(version "$MIN_BAZEL_VERSION")" -gt "$(version "$curr_bazel_version")" ]; then
echo "Please upgrade your bazel installation to version $MIN_BAZEL_VERSION or higher to build TensorFlow!"
echo "Exiting..."
exit 1