[compiler-rt] r261105 - [CMake] Push the dependency on AddLLVM into the test and unites layers

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 17 08:38:55 PST 2016


Author: cbieneman
Date: Wed Feb 17 10:38:54 2016
New Revision: 261105

URL: http://llvm.org/viewvc/llvm-project?rev=261105&view=rev
Log:
[CMake] Push the dependency on AddLLVM into the test and unites layers

Compiler-rt only relies on LLVM for lit support. Pushing this dependency down into the test and unitest layers will allow builtin libraries to be built without LLVM.

Modified:
    compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake
    compiler-rt/trunk/test/CMakeLists.txt
    compiler-rt/trunk/unittests/CMakeLists.txt

Modified: compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake?rev=261105&r1=261104&r2=261105&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake Wed Feb 17 10:38:54 2016
@@ -1,4 +1,3 @@
-include(AddLLVM)
 include(ExternalProject)
 include(CompilerRTUtils)
 

Modified: compiler-rt/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/CMakeLists.txt?rev=261105&r1=261104&r2=261105&view=diff
==============================================================================
--- compiler-rt/trunk/test/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/CMakeLists.txt Wed Feb 17 10:38:54 2016
@@ -1,3 +1,6 @@
+# Needed for lit support
+include(AddLLVM)
+
 configure_lit_site_cfg(
   ${CMAKE_CURRENT_SOURCE_DIR}/lit.common.configured.in
   ${CMAKE_CURRENT_BINARY_DIR}/lit.common.configured)

Modified: compiler-rt/trunk/unittests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/unittests/CMakeLists.txt?rev=261105&r1=261104&r2=261105&view=diff
==============================================================================
--- compiler-rt/trunk/unittests/CMakeLists.txt (original)
+++ compiler-rt/trunk/unittests/CMakeLists.txt Wed Feb 17 10:38:54 2016
@@ -1,3 +1,6 @@
+# Needed for lit support
+include(AddLLVM)
+
 configure_lit_site_cfg(
   ${CMAKE_CURRENT_SOURCE_DIR}/lit.common.unit.configured.in
   ${CMAKE_CURRENT_BINARY_DIR}/lit.common.unit.configured)




More information about the llvm-commits mailing list