[libcxx-commits] [libcxx] da940b1 - [libc++] Enable tests and documentation by default when building standalone

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 29 09:42:25 PDT 2020


Author: Louis Dionne
Date: 2020-06-29T12:40:07-04:00
New Revision: da940b1a2d06382f11ead4369a48edf617697183

URL: https://github.com/llvm/llvm-project/commit/da940b1a2d06382f11ead4369a48edf617697183
DIFF: https://github.com/llvm/llvm-project/commit/da940b1a2d06382f11ead4369a48edf617697183.diff

LOG: [libc++] Enable tests and documentation by default when building standalone

Since we can always find the rest of the LLVM tree, we can always run the
tests in the standalone mode. Do it so that the default behavior is the
same in the standalone and non-standalone modes.

Added: 
    

Modified: 
    libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake

Removed: 
    


################################################################################
diff  --git a/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake b/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake
index d488b8ede7bf..457ad4176042 100644
--- a/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake
+++ b/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake
@@ -40,10 +40,10 @@ include(AddLLVM OPTIONAL)
 
 # LLVM Options --------------------------------------------------------------
 if (NOT DEFINED LLVM_INCLUDE_TESTS)
-  set(LLVM_INCLUDE_TESTS ${LLVM_FOUND})
+  set(LLVM_INCLUDE_TESTS ON)
 endif()
 if (NOT DEFINED LLVM_INCLUDE_DOCS)
-  set(LLVM_INCLUDE_DOCS ${LLVM_FOUND})
+  set(LLVM_INCLUDE_DOCS ON)
 endif()
 if (NOT DEFINED LLVM_ENABLE_SPHINX)
   set(LLVM_ENABLE_SPHINX OFF)


        


More information about the libcxx-commits mailing list