[PATCH] D110016: Check for invalid projects passed in LLVM_ENABLE_PROJECTS
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 18 11:11:55 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG713c768a6d0e: Check for invalid projects passed in LLVM_ENABLE_PROJECTS (authored by mehdi_amini).
Changed prior to commit:
https://reviews.llvm.org/D110016?vs=373386&id=373428#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110016/new/
https://reviews.llvm.org/D110016
Files:
llvm/CMakeLists.txt
Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -71,6 +71,12 @@
set(LLVM_KNOWN_PROJECTS "${LLVM_ALL_PROJECTS};${LLVM_EXTRA_PROJECTS}")
set(LLVM_ENABLE_PROJECTS "" CACHE STRING
"Semicolon-separated list of projects to build (${LLVM_KNOWN_PROJECTS}), or \"all\".")
+foreach(proj ${LLVM_ENABLE_PROJECTS})
+ if (NOT proj STREQUAL "all" AND NOT proj STREQUAL "llvm" AND NOT "${proj}" IN_LIST LLVM_KNOWN_PROJECTS)
+ MESSAGE(FATAL_ERROR "${proj} isn't a know project: ${LLVM_KNOWN_PROJECTS}")
+ endif()
+endforeach()
+
if( LLVM_ENABLE_PROJECTS STREQUAL "all" )
set( LLVM_ENABLE_PROJECTS ${LLVM_ALL_PROJECTS})
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110016.373428.patch
Type: text/x-patch
Size: 723 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210918/6d75d49b/attachment.bin>
More information about the llvm-commits
mailing list