aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Maruseac <mihaimaruseac@google.com>2021-03-24 14:23:42 -0700
committerGitHub <noreply@github.com>2021-03-24 21:23:42 +0000
commit6c2bed9d03c21f12636bf38ee32c28d96cc8b97b (patch)
tree6c8eeca354fbd7963cead853bd1c5fad6a64308c
parent45dca65cb9e0244e42411be98b8852652d255329 (diff)
downloadoss-fuzz-6c2bed9d03c21f12636bf38ee32c28d96cc8b97b.tar.gz
Only remove `external/org_tensorflow` if it exists (#5494)
This should fix coverage build broken again today. It seems that a recent change in TF toolchains removed the creation of `org_tensorflow` but it is likely that this change will be rolled back in the future. Hence, to keep OSSFuzz working, we conditionally remove this symlink.
-rwxr-xr-xprojects/tensorflow/build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/tensorflow/build.sh b/projects/tensorflow/build.sh
index ca09f46dc..b59e4a58b 100755
--- a/projects/tensorflow/build.sh
+++ b/projects/tensorflow/build.sh
@@ -96,7 +96,7 @@ then
# code that Bazel creates. Not removing this would cause `rsync` to expand a
# symlink that ends up pointing to itself!
pushd bazel-tensorflow
- unlink external/org_tensorflow
+ [[ -e external/org_tensorflow ]] && unlink external/org_tensorflow
${RSYNC_CMD} external/ ${REMAP_PATH}
popd
fi