diff options
author | Mihai Maruseac <mihaimaruseac@google.com> | 2021-03-24 14:23:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 21:23:42 +0000 |
commit | 6c2bed9d03c21f12636bf38ee32c28d96cc8b97b (patch) | |
tree | 6c8eeca354fbd7963cead853bd1c5fad6a64308c | |
parent | 45dca65cb9e0244e42411be98b8852652d255329 (diff) | |
download | oss-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-x | projects/tensorflow/build.sh | 2 |
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 |