@@ -108,15 +108,20 @@ endif()
108108# LLVM_EXTERNAL_${project}_SOURCE_DIR using LLVM_ALL_PROJECTS
109109# This allows an easy way of setting up a build directory for llvm and another
110110# 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" )
112113if (${CMAKE_SYSTEM_NAME} MATCHES "AIX" )
113114 # Disallow 'openmp' as a LLVM PROJECT on AIX as the supported way is to use
114115 # LLVM_ENABLE_RUNTIMES.
115116 list (REMOVE_ITEM LLVM_ALL_PROJECTS openmp)
116117endif ()
117118
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" )
120125# List of all known projects in the mono repo
121126set (LLVM_KNOWN_PROJECTS "${LLVM_ALL_PROJECTS} ;${LLVM_EXTRA_PROJECTS} " )
122127set (LLVM_ENABLE_PROJECTS "" CACHE STRING
@@ -167,8 +172,7 @@ if ("flang" IN_LIST LLVM_ENABLE_PROJECTS)
167172endif ()
168173
169174if ("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 "
172176 "-DLLVM_ENABLE_RUNTIMES=libc or see the instructions at "
173177 "https://libc.llvm.org/ for building the runtimes." )
174178endif ()
0 commit comments