aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-08-07 08:37:42 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-08-07 08:37:42 +0000
commit5d435b6001fb853747426bfa47b0e0f49a736fe4 (patch)
tree9932c1dd8fe3e971de665e4f60ea0e7aadd015dd
parentf3749f4168c5cee59627a681ca4ca6e4116d0761 (diff)
Initial support for recursing into the new clang-tools-extra repository
if checked out under clang/tools/extra. This is mostly so folks other than me can start to test. Documentation, details, and an announcement are still in the works. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161405 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index ab4748d1b9..3a6fef5575 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -5,3 +5,12 @@ add_subdirectory(c-arcmt-test)
add_subdirectory(diagtool)
add_subdirectory(driver)
add_subdirectory(clang-check)
+
+# We support checking out the clang-tools-extra repository into the 'extra'
+# subdirectory. It contains tools developed as part of the Clang/LLVM project
+# on top of the Clang tooling platform. We keep them in a separate repository
+# to keep the primary Clang repository small and focused.
+if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/extra AND
+ EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/extra/CMakeLists.txt)
+ add_subdirectory(extra)
+endif()