[compiler-rt] [llvm] [LLVM][compiler-rt] Fix build with LLVM_USE_SANITIZER=Undefined (PR #120006)
Dmitry Chestnykh via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 16 08:46:17 PST 2024
================
@@ -1064,7 +1064,8 @@ if(LLVM_USE_SANITIZER)
if (LLVM_USE_SANITIZE_COVERAGE)
append("-fsanitize=fuzzer-no-link" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
endif()
- if (LLVM_USE_SANITIZER MATCHES ".*Undefined.*")
+ if (LLVM_USE_SANITIZER MATCHES ".*Undefined.*" AND CMAKE_C_COMPILER_ID MATCHES "Clang" AND
+ CMAKE_CXX_COMPILER_ID MATCHES "Clang")
----------------
chestnykh wrote:
Thx, i've done the same for `-fno-sanitize=function` flag in llvm/CMakeLists.txt
https://github.com/llvm/llvm-project/pull/120006
More information about the llvm-commits
mailing list