aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Andrew Harp <andrewharp@google.com>2017-01-27 14:42:30 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-01-27 15:08:59 -0800
commit51dbc464832599c4d450d078d00e56a011233277 (patch)
tree939d42488d457ad868f86175f75fbd7f6e308903 /configure
parent46875d230245f546d962750a97b796790c64390f (diff)
Delete downloaded BUILD files for makefile dependencies immediately after extracting and also at the beginning of ./configure. This will prevent bazel from erroneously parsing contrib/makefile/downloads during configuration if a makefile build has previously been performed.
Change: 145838744
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index a8e7bb7738..6cd5c2f3db 100755
--- a/configure
+++ b/configure
@@ -44,6 +44,13 @@ function bazel_clean_and_fetch() {
bazel fetch "//tensorflow/... -//tensorflow/examples/android/..."
}
+# Delete any leftover BUILD files from the Makefile build, which would interfere
+# with Bazel parsing.
+MAKEFILE_DOWNLOAD_DIR=tensorflow/contrib/makefile/downloads
+if [ -d "${MAKEFILE_DOWNLOAD_DIR}" ]; then
+ find ${MAKEFILE_DOWNLOAD_DIR} -type f -name '*BUILD' -delete
+fi
+
## Set up python-related environment settings
while true; do
fromuser=""