From d533911bf33c3d90f23b5d3363d6d89a3a0f0e54 Mon Sep 17 00:00:00 2001 From: Kobrin Eli Date: Thu, 2 Jun 2022 05:28:21 +0300 Subject: [PATCH] [tensorflow] Fix libfuzzer-undefined build. (#7780) --- projects/tensorflow/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/tensorflow/build.sh b/projects/tensorflow/build.sh index 928bfdc2d..98efde38c 100755 --- a/projects/tensorflow/build.sh +++ b/projects/tensorflow/build.sh @@ -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