diff options
| author | Alexey Samsonov <samsonov@google.com> | 2014-02-27 08:59:01 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2014-02-27 08:59:01 +0000 |
| commit | f431a8386c41409b91d350c8ec953eed03aa8880 (patch) | |
| tree | ae4db7554208e5ddc22e350a7fc6f5a6e8af77c7 | |
| parent | 322e89c4e2b23ac43673e6b7600f72f95c8bf2ac (diff) | |
| download | bcm5719-llvm-f431a8386c41409b91d350c8ec953eed03aa8880.tar.gz bcm5719-llvm-f431a8386c41409b91d350c8ec953eed03aa8880.zip | |
[CMake] Introduce LLVM_BUILD_EXTERNAL_COMPILER_RT option
llvm-svn: 202363
| -rw-r--r-- | llvm/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | llvm/projects/CMakeLists.txt | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 6c16afaeb59..72901c88768 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -287,6 +287,9 @@ option (LLVM_BUILD_DOCS "Build the llvm documentation." OFF) 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 diff --git a/llvm/projects/CMakeLists.txt b/llvm/projects/CMakeLists.txt index 67943c2e9a3..e23a2770562 100644 --- a/llvm/projects/CMakeLists.txt +++ b/llvm/projects/CMakeLists.txt @@ -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) |

