aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/makefile/download_dependencies.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/contrib/makefile/download_dependencies.sh')
-rwxr-xr-xtensorflow/contrib/makefile/download_dependencies.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tensorflow/contrib/makefile/download_dependencies.sh b/tensorflow/contrib/makefile/download_dependencies.sh
index 7aebe18767..58d1dc6f0a 100755
--- a/tensorflow/contrib/makefile/download_dependencies.sh
+++ b/tensorflow/contrib/makefile/download_dependencies.sh
@@ -44,6 +44,9 @@ download_and_extract() {
echo "downloading ${url}" >&2
mkdir -p "${dir}"
curl -Ls "${url}" | tar -C "${dir}" --strip-components=1 -xz
+
+ # Delete any potential BUILD files, which would interfere with Bazel builds.
+ find "${dir}" -type f -name '*BUILD' -delete
}
download_and_extract "${EIGEN_URL}" "${DOWNLOADS_DIR}/eigen"