[llvm] 5f881b7 - [libc] Deprecate LLVM_ENABLE_PROJECTS in favor of LLVM_ENABLE_RUNTIMES. (#117265)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 14:48:01 PST 2024


Author: Nick Desaulniers
Date: 2024-12-02T14:47:58-08:00
New Revision: 5f881b7139bba1b8cd5c09ea021c78b92d1e72c9

URL: https://github.com/llvm/llvm-project/commit/5f881b7139bba1b8cd5c09ea021c78b92d1e72c9
DIFF: https://github.com/llvm/llvm-project/commit/5f881b7139bba1b8cd5c09ea021c78b92d1e72c9.diff

LOG: [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

Added: 
    

Modified: 
    llvm/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index cfcf1404d82b7c..569c01b61daac0 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


        


More information about the llvm-commits mailing list