Skip to content

Commit 5f881b7

Browse files
[libc] Deprecate LLVM_ENABLE_PROJECTS in favor of LLVM_ENABLE_RUNTIMES. (#117265)
We plan to make this a hard error in the LLVM 21 release. Link: #78479
1 parent da5f330 commit 5f881b7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ if ("flang" IN_LIST LLVM_ENABLE_PROJECTS)
150150
endif()
151151
endif()
152152

153+
if ("libc" IN_LIST LLVM_ENABLE_PROJECTS)
154+
message(WARNING "Using LLVM_ENABLE_PROJECTS=libc is deprecated now, and will "
155+
"become a fatal error in the LLVM 21 release. Please use "
156+
"-DLLVM_ENABLE_RUNTIMES=libc or see the instructions at "
157+
"https://libc.llvm.org/ for building the runtimes.")
158+
endif()
159+
153160
# Select the runtimes to build
154161
#
155162
# As we migrate runtimes to using the bootstrapping build, the set of default runtimes

0 commit comments

Comments
 (0)