Skip to content

Commit 6cd6de5

Browse files
[llvm][cmake] Remove version number from runtimes in PROJECTS warnings (#152457)
Judging from the reaction to #152302, we are not ready to make this a fatal error. Remove the specific version number, and update the libc message to match the others' wording.
1 parent c869ef6 commit 6cd6de5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,28 +187,29 @@ if ("lldb" IN_LIST LLVM_ENABLE_PROJECTS)
187187
endif ()
188188

189189
if ("libc" IN_LIST LLVM_ENABLE_PROJECTS)
190-
message(WARNING "Using LLVM_ENABLE_PROJECTS=libc is deprecated. Please use "
190+
message(WARNING "Using LLVM_ENABLE_PROJECTS=libc is deprecated now, and will "
191+
"become a fatal error in a future release. Please use "
191192
"-DLLVM_ENABLE_RUNTIMES=libc or see the instructions at "
192193
"https://libc.llvm.org/ for building the runtimes.")
193194
endif()
194195

195196
if ("compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS)
196197
message(WARNING "Using LLVM_ENABLE_PROJECTS=compiler-rt is deprecated now, and will "
197-
"become a fatal error in the LLVM 21 release. Please use "
198+
"become a fatal error in a future release. Please use "
198199
"-DLLVM_ENABLE_RUNTIMES=compiler-rt or see the instructions at "
199200
"https://compiler-rt.llvm.org/ for building the runtimes.")
200201
endif()
201202

202203
if ("offload" IN_LIST LLVM_ENABLE_PROJECTS)
203204
message(WARNING "Using LLVM_ENABLE_PROJECTS=offload is deprecated now, and will "
204-
"become a fatal error in the LLVM 21 release. Please use "
205+
"become a fatal error in a future release. Please use "
205206
"-DLLVM_ENABLE_RUNTIMES=offload or see the instructions at "
206207
"https://openmp.llvm.org/ for building the runtimes.")
207208
endif()
208209

209210
if ("openmp" IN_LIST LLVM_ENABLE_PROJECTS)
210211
message(WARNING "Using LLVM_ENABLE_PROJECTS=openmp is deprecated now, and will "
211-
"become a fatal error in the LLVM 21 release. Please use "
212+
"become a fatal error in a future release. Please use "
212213
"-DLLVM_ENABLE_RUNTIMES=openmp or see the instructions at "
213214
"https://openmp.llvm.org/ for building the runtimes.")
214215
endif()
@@ -221,7 +222,7 @@ endif ()
221222

222223
if ("libclc" IN_LIST LLVM_ENABLE_PROJECTS)
223224
message(WARNING "Using LLVM_ENABLE_PROJECTS=libclc is deprecated now, and will "
224-
"become a fatal error in the LLVM 21 release. Please use "
225+
"become a fatal error in a future release. Please use "
225226
"-DLLVM_ENABLE_RUNTIMES=libclc or see the instructions at "
226227
"https://libclc.llvm.org/ for building the runtimes.")
227228
endif()

0 commit comments

Comments
 (0)