[llvm] 0eb75a4 - Revert "Check for invalid projects passed in LLVM_ENABLE_PROJECTS"
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 18 03:57:32 PDT 2021
Author: Roman Lebedev
Date: 2021-09-18T13:56:54+03:00
New Revision: 0eb75a41c5d46bda6e31bc33bb81acef1b0890f2
URL: https://github.com/llvm/llvm-project/commit/0eb75a41c5d46bda6e31bc33bb81acef1b0890f2
DIFF: https://github.com/llvm/llvm-project/commit/0eb75a41c5d46bda6e31bc33bb81acef1b0890f2.diff
LOG: Revert "Check for invalid projects passed in LLVM_ENABLE_PROJECTS"
```
CMake Error at CMakeLists.txt:76 (MESSAGE):
all isn't a know project:
clang;clang-tools-extra;compiler-rt;cross-project-tests;libc;libclc;libcxx;libcxxabi;libunwind;lld;lldb;mlir;openmp;parallel-libs;polly;pstl;flang;llvm
```
This reverts commit 4121ac1e7f96d826b793bd7e29c181f1eb8168bf.
Added:
Modified:
llvm/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 0200cca30069..c48f50639d83 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -68,15 +68,9 @@ set(LLVM_ALL_PROJECTS "clang;clang-tools-extra;compiler-rt;cross-project-tests;l
# The flang project is not yet part of "all" projects (see C++ requirements)
set(LLVM_EXTRA_PROJECTS "flang")
# List of all known projects in the mono repo
-set(LLVM_KNOWN_PROJECTS "${LLVM_ALL_PROJECTS};${LLVM_EXTRA_PROJECTS};llvm")
+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}" 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()
More information about the llvm-commits
mailing list