[PATCH] D62813: [HWASAN][CMake] Allow instrumenting LLVM/clang
Eugene Leviant via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 02:04:34 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL362474: [HWASAN][CMake] Allow instrumenting LLVM/clang (authored by evgeny777, committed by ).
Herald added a project: LLVM.
Changed prior to commit:
https://reviews.llvm.org/D62813?vs=202727&id=202876#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62813/new/
https://reviews.llvm.org/D62813
Files:
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
Index: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
@@ -697,6 +697,9 @@
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62813.202876.patch
Type: text/x-patch
Size: 732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190604/08dcd8a2/attachment.bin>
More information about the llvm-commits
mailing list