[PATCH] D31864: [compiler-rt] Disable installation of sanitizer and xray headers
Catherine Moore via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 11 06:57:54 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL299940: This patch causes the installation of headers for the sanitizer and/or xray to… (authored by clm).
Changed prior to commit:
https://reviews.llvm.org/D31864?vs=94617&id=94813#toc
Repository:
rL LLVM
https://reviews.llvm.org/D31864
Files:
compiler-rt/trunk/include/CMakeLists.txt
Index: compiler-rt/trunk/include/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/include/CMakeLists.txt
+++ compiler-rt/trunk/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)
-
-set(XRAY_HEADERS
- xray/xray_interface.h
- xray/xray_log_interface.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)
+
+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}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31864.94813.patch
Type: text/x-patch
Size: 1353 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170411/1c479973/attachment.bin>
More information about the llvm-commits
mailing list