[libcxx] r268451 - Make check-libcxx dependant on libc++experimental if present.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Tue May 3 14:58:08 PDT 2016


Author: ericwf
Date: Tue May  3 16:58:07 2016
New Revision: 268451

URL: http://llvm.org/viewvc/llvm-project?rev=268451&view=rev
Log:
Make check-libcxx dependant on libc++experimental if present.

Modified:
    libcxx/trunk/test/CMakeLists.txt

Modified: libcxx/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/CMakeLists.txt?rev=268451&r1=268450&r2=268451&view=diff
==============================================================================
--- libcxx/trunk/test/CMakeLists.txt (original)
+++ libcxx/trunk/test/CMakeLists.txt Tue May  3 16:58:07 2016
@@ -44,10 +44,14 @@ configure_file(
   ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
   @ONLY)
 
+if (LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY)
+  set(experimental_dep cxx_experimental)
+endif()
+
 add_lit_testsuite(check-libcxx
   "Running libcxx tests"
   ${CMAKE_CURRENT_BINARY_DIR}
-  DEPENDS cxx)
+  DEPENDS cxx ${experimental_dep})
 
 if (LIBCXX_GENERATE_COVERAGE)
   include(CodeCoverage)




More information about the cfe-commits mailing list