[CMake] Add -fno-sanitize=function to UBSan bootstrap
authorAlexey Samsonov <vonosmas@gmail.com>
Fri, 5 Sep 2014 01:17:30 +0000 (01:17 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Fri, 5 Sep 2014 01:17:30 +0000 (01:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217217 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/HandleLLVMOptions.cmake

index 2fcdfbefd1564ba7bd018ad909e38d0be3fc426e..8b665d3b3c663ff78f4d3550f7896c83bfb864b2 100644 (file)
@@ -365,7 +365,7 @@ if(LLVM_USE_SANITIZER)
       endif()
     elseif (LLVM_USE_SANITIZER STREQUAL "Undefined")
       append_common_sanitizer_flags()
-      append("-fsanitize=undefined -fno-sanitize=vptr -fno-sanitize-recover"
+      append("-fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover"
               CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
     else()
       message(WARNING "Unsupported value of LLVM_USE_SANITIZER: ${LLVM_USE_SANITIZER}")