[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:54:57 PDT 2020
njames93 updated this revision to Diff 275999.
njames93 added a comment.
Change message from WARNING to STATUS in line with flang.
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(STATUS "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.275999.patch
Type: text/x-patch
Size: 719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200707/9f301035/attachment.bin>
More information about the llvm-commits
mailing list