diff options
author | Catherine Moore <Catherine_moore@mentor.com> | 2017-04-11 13:45:05 +0000 |
---|---|---|
committer | Catherine Moore <Catherine_moore@mentor.com> | 2017-04-11 13:45:05 +0000 |
commit | da0f8e2b7891543e9e98e2afadbbabb5e3eea16b (patch) | |
tree | 02740f57e98db39c9c2550ff535b92ae4a8a6583 /include | |
parent | 77094f117908a9b2f3b2cb4ebe5dbf6c744a851d (diff) |
This patch causes the installation of headers for the sanitizer and/or xray to be disabled when COMPILER_RT_BUILD_SANITIZERS=OFF and/or COMPILER_RT_BUILD_XRAY=OFF.
Reviewer: dberris
Subscribers: dberris, mgorny, llvm-commits, clm
Differential Revision: https://reviews.llvm.org/D31864
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@299940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/CMakeLists.txt | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 3d6c96be9..ec3bf40b9 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -1,19 +1,23 @@ -set(SANITIZER_HEADERS - sanitizer/allocator_interface.h - sanitizer/asan_interface.h - sanitizer/common_interface_defs.h - sanitizer/coverage_interface.h - sanitizer/dfsan_interface.h - sanitizer/esan_interface.h - sanitizer/linux_syscall_hooks.h - sanitizer/lsan_interface.h - sanitizer/msan_interface.h - sanitizer/tsan_interface.h - sanitizer/tsan_interface_atomic.h) +if (COMPILER_RT_BUILD_SANITIZERS) + set(SANITIZER_HEADERS + sanitizer/allocator_interface.h + sanitizer/asan_interface.h + sanitizer/common_interface_defs.h + sanitizer/coverage_interface.h + sanitizer/dfsan_interface.h + sanitizer/esan_interface.h + sanitizer/linux_syscall_hooks.h + sanitizer/lsan_interface.h + sanitizer/msan_interface.h + sanitizer/tsan_interface.h + sanitizer/tsan_interface_atomic.h) +endif(COMPILER_RT_BUILD_SANITIZERS) -set(XRAY_HEADERS - xray/xray_interface.h - xray/xray_log_interface.h) +if (COMPILER_RT_BUILD_XRAY) + set(XRAY_HEADERS + xray/xray_interface.h + xray/xray_log_interface.h) +endif(COMPILER_RT_BUILD_XRAY) set(COMPILER_RT_HEADERS ${SANITIZER_HEADERS} |