@@ -108,16 +108,21 @@ 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" )
112113set (LLVM_ALL_PROJECTS "${LLVM_ALL_PROJECTS} ;${LLVM_EXTERNAL_PROJECTS} " )
113114if (${CMAKE_SYSTEM_NAME} MATCHES "AIX" )
114115 # Disallow 'openmp' as a LLVM PROJECT on AIX as the supported way is to use
115116 # LLVM_ENABLE_RUNTIMES.
116117 list (REMOVE_ITEM LLVM_ALL_PROJECTS openmp)
117118endif ()
118119
119- # The flang project is not yet part of "all" projects (see C++ requirements)
120- set (LLVM_EXTRA_PROJECTS "flang" )
120+ # The "libc" project, which is not part of "all" projects, could be included in
121+ # LLVM_ENABLE_PROJECTS. It is preferred to include "libc" in
122+ # LLVM_ENABLE_RUNTIMES instead of LLVM_ENABLE_PROJECTS.
123+ #
124+ # The flang project is not yet part of "all" projects (see C++ requirements).
125+ set (LLVM_EXTRA_PROJECTS "flang" "libc" )
121126# List of all known projects in the mono repo
122127set (LLVM_KNOWN_PROJECTS "${LLVM_ALL_PROJECTS} ;${LLVM_EXTRA_PROJECTS} " )
123128set (LLVM_ENABLE_PROJECTS "" CACHE STRING
@@ -168,8 +173,7 @@ if ("flang" IN_LIST LLVM_ENABLE_PROJECTS)
168173endif ()
169174
170175if ("libc" IN_LIST LLVM_ENABLE_PROJECTS)
171- message (WARNING "Using LLVM_ENABLE_PROJECTS=libc is deprecated now, and will "
172- "become a fatal error in the LLVM 21 release. Please use "
176+ message (WARNING "Using LLVM_ENABLE_PROJECTS=libc is deprecated. Please use "
173177 "-DLLVM_ENABLE_RUNTIMES=libc or see the instructions at "
174178 "https://libc.llvm.org/ for building the runtimes." )
175179endif ()
0 commit comments