[libclc] [llvm] [libclc] Support LLVM_ENABLE_RUNTIMES when building (PR #141574)

Fraser Cormack via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 7 08:47:20 PDT 2025


================
@@ -204,6 +204,13 @@ if ("flang-rt" IN_LIST LLVM_ENABLE_RUNTIMES)
   endif ()
 endif ()
 
+if ("libclc" IN_LIST LLVM_ENABLE_PROJECTS)
+  message(WARNING "Using LLVM_ENABLE_PROJECTS=libclc is deprecated now, and will "
+    "become a fatal error in the LLVM 21 release.  Please use "
+    "-DLLVM_ENABLE_RUNTIMES=libclc or see the instructions at "
+    "https://libclc.llvm.org/ for building the runtimes.")
----------------
frasercrmck wrote:

Yes the message to refer to the URL is misleading, sorry. Though the first part - `-DLLVM_ENABLE_RUNTIMES=libclc` - should be enough to build libclc. It should just be switching from `PROJECTS` to `RUNTIMES`.

https://github.com/llvm/llvm-project/pull/141574


More information about the llvm-commits mailing list