aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Desaulniers <nickdesaulniers@users.noreply.github.com>2024-12-02 14:47:58 -0800
committerGitHub <noreply@github.com>2024-12-02 14:47:58 -0800
commit5f881b7139bba1b8cd5c09ea021c78b92d1e72c9 (patch)
tree403435ce2e3945e33405d3b7fe3022bdf3d563b3
parentda5f330e84d74aeacdbb801c46282b9eebec6793 (diff)
downloadllvm-5f881b7139bba1b8cd5c09ea021c78b92d1e72c9.zip
llvm-5f881b7139bba1b8cd5c09ea021c78b92d1e72c9.tar.gz
llvm-5f881b7139bba1b8cd5c09ea021c78b92d1e72c9.tar.bz2
[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
-rw-r--r--llvm/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index cfcf140..569c01b 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -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