[llvm] bd4a7aa - [Offload] Deprecate `openmp` and `offload` projects builds (#136314)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 25 09:16:11 PDT 2025


Author: Joseph Huber
Date: 2025-04-25T11:16:07-05:00
New Revision: bd4a7aa64a79ee62b81f13ba7c45697ace386220

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

LOG: [Offload] Deprecate `openmp` and `offload` projects builds (#136314)

Summary:
These are compiler runtimes are currently have weird support for
projects / runtimes. We should depcrate this to where the only expected
configuration is via a runtimes build. If the user wants a custom setup
they can still use the standalone build.

I remember there were some concerens around the OpenMP module file for
`flang`. Were those resolved?

Fixes: https://github.com/llvm/llvm-project/issues/124014

Added: 
    

Modified: 
    llvm/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index c690acc27fa74..73c4fc14f0319 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -164,6 +164,20 @@ if ("compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS)
     "https://compiler-rt.llvm.org/ for building the runtimes.")
 endif()
 
+if ("offload" IN_LIST LLVM_ENABLE_PROJECTS)
+  message(WARNING "Using LLVM_ENABLE_PROJECTS=offload is deprecated now, and will "
+    "become a fatal error in the LLVM 21 release.  Please use "
+    "-DLLVM_ENABLE_RUNTIMES=offload or see the instructions at "
+    "https://openmp.llvm.org/ for building the runtimes.")
+endif()
+
+if ("openmp" IN_LIST LLVM_ENABLE_PROJECTS)
+  message(WARNING "Using LLVM_ENABLE_PROJECTS=openmp is deprecated now, and will "
+    "become a fatal error in the LLVM 21 release.  Please use "
+    "-DLLVM_ENABLE_RUNTIMES=openmp or see the instructions at "
+    "https://openmp.llvm.org/ for building the runtimes.")
+endif()
+
 if ("flang-rt" IN_LIST LLVM_ENABLE_RUNTIMES)
   if (NOT "flang" IN_LIST LLVM_ENABLE_PROJECTS)
     message(FATAL_ERROR "Flang is not enabled, but is required for the Flang-RT runtime")


        


More information about the llvm-commits mailing list