[PATCH] D22573: Support only building XRay and its dependencies

Dean Michael Berris via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 09:08:08 PDT 2016


dberris created this revision.
dberris added a reviewer: rnk.
dberris added a subscriber: llvm-commits.

This should make it possible to build XRay without it being lumped in with the sanitizers.

https://reviews.llvm.org/D22573

Files:
  lib/CMakeLists.txt

Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -56,8 +56,15 @@
   if(COMPILER_RT_HAS_SCUDO)
     add_subdirectory(scudo)
   endif()
+endif()
 
-  if(COMPILER_RT_HAS_XRAY)
+if(COMPILER_RT_BUILD_XRAY)
+  if(COMPILER_RT_HAS_SANITIZER_COMMON AND COMPILER_RT_HAS_XRAY)
+    if (NOT COMPILER_RT_BUILD_SANITIZERS)
+      # For the case where only XRay is being built (i.e. none of the other
+      # sanitizers), we want to build the sanitizer_common library as well.
+      add_subdirectory(sanitizer_common)
+    endif()
     add_subdirectory(xray)
   endif()
 endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22573.64700.patch
Type: text/x-patch
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160720/b41fc8aa/attachment.bin>


More information about the llvm-commits mailing list