Skip to content

Commit

Permalink
[libc] Deprecate LLVM_ENABLE_PROJECTS in favor of LLVM_ENABLE_RUNTIME…
Browse files Browse the repository at this point in the history
…S. (llvm#117265)

We plan to make this a hard error in the LLVM 21 release.

Link: llvm#78479
  • Loading branch information
nickdesaulniers authored Dec 2, 2024
1 parent da5f330 commit 5f881b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions llvm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ if ("flang" IN_LIST LLVM_ENABLE_PROJECTS)
endif()
endif()

if ("libc" IN_LIST LLVM_ENABLE_PROJECTS)
message(WARNING "Using LLVM_ENABLE_PROJECTS=libc is deprecated now, and will "
"become a fatal error in the LLVM 21 release. Please use "
"-DLLVM_ENABLE_RUNTIMES=libc or see the instructions at "
"https://libc.llvm.org/ for building the runtimes.")
endif()

# Select the runtimes to build
#
# As we migrate runtimes to using the bootstrapping build, the set of default runtimes
Expand Down

0 comments on commit 5f881b7

Please sign in to comment.