summaryrefslogtreecommitdiffstats
path: root/llvm/projects
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-10-24 12:26:08 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-10-24 12:26:08 +0000
commit701ddbcdeb806f725f73f7d8856629eba3295924 (patch)
treeeef639a9320954d9204a5547713df167e75837ee /llvm/projects
parent35668cc401cdfc80a45b2d742a7ac6c9962404b9 (diff)
downloadbcm5719-llvm-701ddbcdeb806f725f73f7d8856629eba3295924.tar.gz
bcm5719-llvm-701ddbcdeb806f725f73f7d8856629eba3295924.zip
[CMake] Introduce LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR.
llvm-svn: 166552
Diffstat (limited to 'llvm/projects')
-rw-r--r--llvm/projects/CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/projects/CMakeLists.txt b/llvm/projects/CMakeLists.txt
index a9d2af6ad21..36751cd31da 100644
--- a/llvm/projects/CMakeLists.txt
+++ b/llvm/projects/CMakeLists.txt
@@ -14,8 +14,6 @@ endforeach(entry)
# Also add in the compiler-rt tree if present and we have a sufficiently
# recent version of CMake.
if(${CMAKE_VERSION} VERSION_GREATER 2.8.7 AND
- ${LLVM_BUILD_RUNTIME} AND
- IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt AND
- EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt/CMakeLists.txt)
- add_subdirectory(compiler-rt)
+ ${LLVM_BUILD_RUNTIME})
+ add_llvm_external_project(compiler-rt)
endif()
OpenPOWER on IntegriCloud