mirror of https://github.com/google/oss-fuzz.git
[tensorflow] Fix libfuzzer-undefined build. (#7780)
This commit is contained in:
parent
5c56efe1c2
commit
d533911bf3
|
@ -42,6 +42,8 @@ done
|
|||
if [ "$SANITIZER" = "undefined" ]
|
||||
then
|
||||
echo "--linkopt=$(find $(llvm-config --libdir) -name libclang_rt.ubsan_standalone_cxx-x86_64.a | head -1)"
|
||||
sed -i -e 's/"\/\/conditions:default": \[/"\/\/conditions:default": \[\n"-fno-sanitize=undefined",/' third_party/nasm/nasm.BUILD
|
||||
sed -i -e 's/includes/linkopts = \["-fno-sanitize=undefined"\],\nincludes/' third_party/nasm/nasm.BUILD
|
||||
fi
|
||||
if [ "$SANITIZER" = "address" ]
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue