aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/BUILD')
-rw-r--r--tensorflow/BUILD8
1 files changed, 8 insertions, 0 deletions
diff --git a/tensorflow/BUILD b/tensorflow/BUILD
index c8e24e3aff..56eedc4ea1 100644
--- a/tensorflow/BUILD
+++ b/tensorflow/BUILD
@@ -628,6 +628,14 @@ genrule(
continue
fi
+ if [[ $${d} == external* ]]; then
+ extname="$${d#*external/}"
+ extname="$${extname%%/*}"
+ if [[ $${TF_SYSTEM_LIBS:-} == *$${extname}* ]]; then
+ continue
+ fi
+ fi
+
mkdir -p "$@/$${d}"
cp "$${f}" "$@/$${d}/"
done