Skip to content

Commit c9485cb

Browse files
tensorflow: fix UBSAN build (#10591)
The build is currently failing in UBSAN since a target is not compatible. This fixes it.
1 parent 9d46ea3 commit c9485cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/tensorflow/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
git apply --ignore-space-change --ignore-whitespace $SRC/fuzz_patch.patch
1919

20+
if [ "$SANITIZER" = "undefined" ]; then
21+
rm $SRC/tensorflow/tensorflow/security/fuzzing/cc/core/function/BUILD
22+
fi
23+
2024
# Rename all fuzzer rules to oss-fuzz rules.
2125
find $SRC/tensorflow/tensorflow/ -name "BUILD" -exec sed -i 's/tf_cc_fuzz_test/tf_oss_fuzz_fuzztest/g' {} \;
2226

0 commit comments

Comments
 (0)