[llvm] r362474 - [HWASAN][CMake] Allow instrumenting LLVM/clang
Eugene Leviant via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 02:04:53 PDT 2019
Author: evgeny777
Date: Tue Jun 4 02:04:53 2019
New Revision: 362474
URL: http://llvm.org/viewvc/llvm-project?rev=362474&view=rev
Log:
[HWASAN][CMake] Allow instrumenting LLVM/clang
Differential revision: https://reviews.llvm.org/D62813
Modified:
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=362474&r1=362473&r2=362474&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Tue Jun 4 02:04:53 2019
@@ -697,6 +697,9 @@ if(LLVM_USE_SANITIZER)
if (LLVM_USE_SANITIZER STREQUAL "Address")
append_common_sanitizer_flags()
append("-fsanitize=address" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
+ elseif (LLVM_USE_SANITIZER STREQUAL "HWAddress")
+ append_common_sanitizer_flags()
+ append("-fsanitize=hwaddress" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
elseif (LLVM_USE_SANITIZER MATCHES "Memory(WithOrigins)?")
append_common_sanitizer_flags()
append("-fsanitize=memory" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
More information about the llvm-commits
mailing list