[PATCH] D82159: Add a cmake warning when someone tries to configure clang-tools-extra without clang
Nathan James via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 7 04:11:45 PDT 2020
njames93 updated this revision to Diff 275988.
njames93 added a comment.
Automatically enable clang as well as displaying warning
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82159/new/
https://reviews.llvm.org/D82159
Files:
llvm/CMakeLists.txt
Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -81,6 +81,10 @@
if( LLVM_ENABLE_PROJECTS STREQUAL "all" )
set( LLVM_ENABLE_PROJECTS ${LLVM_ALL_PROJECTS})
endif()
+if ("clang-tools-extra" IN_LIST LLVM_ENABLE_PROJECTS AND NOT "clang" IN_LIST LLVM_ENABLE_PROJECTS)
+ message(WARNING "clang-tools-extra is enabled, which depends on 'clang'. Automatically enabling 'clang'.")
+ list(APPEND LLVM_ENABLE_PROJECTS "clang")
+endif()
if ("flang" IN_LIST LLVM_ENABLE_PROJECTS AND NOT "mlir" IN_LIST LLVM_ENABLE_PROJECTS)
message(STATUS "Enabling MLIR as a dependency to flang")
list(APPEND LLVM_ENABLE_PROJECTS "mlir")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82159.275988.patch
Type: text/x-patch
Size: 720 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200707/d567816b/attachment.bin>
More information about the llvm-commits
mailing list