Skip to content

Commit bd4a7aa

Browse files
authored
[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: #124014
1 parent 5dc2d66 commit bd4a7aa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

llvm/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,20 @@ if ("compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS)
164164
"https://compiler-rt.llvm.org/ for building the runtimes.")
165165
endif()
166166

167+
if ("offload" IN_LIST LLVM_ENABLE_PROJECTS)
168+
message(WARNING "Using LLVM_ENABLE_PROJECTS=offload is deprecated now, and will "
169+
"become a fatal error in the LLVM 21 release. Please use "
170+
"-DLLVM_ENABLE_RUNTIMES=offload or see the instructions at "
171+
"https://openmp.llvm.org/ for building the runtimes.")
172+
endif()
173+
174+
if ("openmp" IN_LIST LLVM_ENABLE_PROJECTS)
175+
message(WARNING "Using LLVM_ENABLE_PROJECTS=openmp is deprecated now, and will "
176+
"become a fatal error in the LLVM 21 release. Please use "
177+
"-DLLVM_ENABLE_RUNTIMES=openmp or see the instructions at "
178+
"https://openmp.llvm.org/ for building the runtimes.")
179+
endif()
180+
167181
if ("flang-rt" IN_LIST LLVM_ENABLE_RUNTIMES)
168182
if (NOT "flang" IN_LIST LLVM_ENABLE_PROJECTS)
169183
message(FATAL_ERROR "Flang is not enabled, but is required for the Flang-RT runtime")

0 commit comments

Comments
 (0)