[llvm] r202363 - [CMake] Introduce LLVM_BUILD_EXTERNAL_COMPILER_RT option

Alexey Samsonov samsonov at google.com
Thu Feb 27 00:59:02 PST 2014


Author: samsonov
Date: Thu Feb 27 02:59:01 2014
New Revision: 202363

URL: http://llvm.org/viewvc/llvm-project?rev=202363&view=rev
Log:
[CMake] Introduce LLVM_BUILD_EXTERNAL_COMPILER_RT option

Modified:
    llvm/trunk/CMakeLists.txt
    llvm/trunk/projects/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=202363&r1=202362&r2=202363&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Thu Feb 27 02:59:01 2014
@@ -287,6 +287,9 @@ option (LLVM_BUILD_DOCS "Build the llvm
 option (LLVM_INCLUDE_DOCS "Generate build targets for llvm documentation." ON)
 option (LLVM_ENABLE_DOXYGEN "Use doxygen to generate llvm documentation." OFF)
 
+option (LLVM_BUILD_EXTERNAL_COMPILER_RT
+  "Build compiler-rt as an external project." OFF)
+
 # All options referred to from HandleLLVMOptions have to be specified
 # BEFORE this include, otherwise options will not be correctly set on
 # first cmake run

Modified: llvm/trunk/projects/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/projects/CMakeLists.txt?rev=202363&r1=202362&r2=202363&view=diff
==============================================================================
--- llvm/trunk/projects/CMakeLists.txt (original)
+++ llvm/trunk/projects/CMakeLists.txt Thu Feb 27 02:59:01 2014
@@ -20,7 +20,9 @@ if(${LLVM_BUILD_RUNTIME})
   if(NOT MSVC)
     add_llvm_external_project(libcxx)
   endif()
-  add_llvm_external_project(compiler-rt)
+  if(NOT LLVM_BUILD_EXTERNAL_COMPILER_RT)
+    add_llvm_external_project(compiler-rt)
+  endif()
 endif()
 
 add_llvm_external_project(dragonegg)





More information about the llvm-commits mailing list