[PATCH] [CMake] Treating LLVM_INCLUDE_TOOLS, which is a bool, as a string to change behaviors of the build is a dirty hack. We shouldn't do it.

Phabricator reviews at reviews.llvm.org
Mon Jun 22 15:02:29 PDT 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10613

Files:
  llvm/trunk/tools/CMakeLists.txt

Index: llvm/trunk/tools/CMakeLists.txt
===================================================================
--- llvm/trunk/tools/CMakeLists.txt
+++ llvm/trunk/tools/CMakeLists.txt
@@ -75,14 +75,11 @@
 
 add_llvm_external_project(clang)
 add_llvm_external_project(llgo)
+add_llvm_external_project(lld)
+add_llvm_external_project(lldb)
 
-if( NOT LLVM_INCLUDE_TOOLS STREQUAL "bootstrap-only" )
-  add_llvm_external_project(lld)
-  add_llvm_external_project(lldb)
-
-  # Automatically add remaining sub-directories containing a 'CMakeLists.txt'
-  # file as external projects.
-  add_llvm_implicit_external_projects()
-endif()
+# Automatically add remaining sub-directories containing a 'CMakeLists.txt'
+# file as external projects.
+add_llvm_implicit_external_projects()
 
 set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE)

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10613.28165.patch
Type: text/x-patch
Size: 833 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150622/ea1220e7/attachment.bin>


More information about the llvm-commits mailing list