@@ -108,15 +108,20 @@ endif()
108
108
# LLVM_EXTERNAL_${project}_SOURCE_DIR using LLVM_ALL_PROJECTS
109
109
# This allows an easy way of setting up a build directory for llvm and another
110
110
# one for llvm+clang+... using the same sources.
111
- set (LLVM_ALL_PROJECTS "bolt;clang;clang-tools-extra;compiler-rt;cross-project-tests;libc;libclc;lld;lldb;mlir;openmp;polly;pstl" )
111
+ # These projects will be included when "all" is included in LLVM_ENABLE_PROJECTS.
112
+ set (LLVM_ALL_PROJECTS "bolt;clang;clang-tools-extra;compiler-rt;cross-project-tests;libclc;lld;lldb;mlir;openmp;polly;pstl" )
112
113
if (${CMAKE_SYSTEM_NAME} MATCHES "AIX" )
113
114
# Disallow 'openmp' as a LLVM PROJECT on AIX as the supported way is to use
114
115
# LLVM_ENABLE_RUNTIMES.
115
116
list (REMOVE_ITEM LLVM_ALL_PROJECTS openmp )
116
117
endif ()
117
118
118
- # The flang project is not yet part of "all" projects (see C++ requirements)
119
- set (LLVM_EXTRA_PROJECTS "flang" )
119
+ # The "libc" project, which is not part of "all" projects, could be included in
120
+ # LLVM_ENABLE_PROJECTS. It is preferred to include "libc" in
121
+ # LLVM_ENABLE_RUNTIMES instead of LLVM_ENABLE_PROJECTS.
122
+ #
123
+ # The flang project is not yet part of "all" projects (see C++ requirements).
124
+ set (LLVM_EXTRA_PROJECTS "flang" "libc" )
120
125
# List of all known projects in the mono repo
121
126
set (LLVM_KNOWN_PROJECTS "${LLVM_ALL_PROJECTS} ;${LLVM_EXTRA_PROJECTS} " )
122
127
set (LLVM_ENABLE_PROJECTS "" CACHE STRING
@@ -167,8 +172,7 @@ if ("flang" IN_LIST LLVM_ENABLE_PROJECTS)
167
172
endif ()
168
173
169
174
if ("libc" IN_LIST LLVM_ENABLE_PROJECTS )
170
- message (WARNING "Using LLVM_ENABLE_PROJECTS=libc is deprecated now, and will "
171
- "become a fatal error in the LLVM 21 release. Please use "
175
+ message (WARNING "Using LLVM_ENABLE_PROJECTS=libc is deprecated. Please use "
172
176
"-DLLVM_ENABLE_RUNTIMES=libc or see the instructions at "
173
177
"https://libc.llvm.org/ for building the runtimes." )
174
178
endif ()
0 commit comments