llvm.org GIT mirror llvm / e7dba02
[HWASAN][CMake] Allow instrumenting LLVM/clang Differential revision: https://reviews.llvm.org/D62813 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362474 91177308-0d34-0410-b5e6-96231b3b80d8 Eugene Leviant a month ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
696696 if (LLVM_USE_SANITIZER STREQUAL "Address")
697697 append_common_sanitizer_flags()
698698 append("-fsanitize=address" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
699 elseif (LLVM_USE_SANITIZER STREQUAL "HWAddress")
700 append_common_sanitizer_flags()
701 append("-fsanitize=hwaddress" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
699702 elseif (LLVM_USE_SANITIZER MATCHES "Memory(WithOrigins)?")
700703 append_common_sanitizer_flags()
701704 append("-fsanitize=memory" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)