Skip to content

Commit 379cc60

Browse files
committed
[compiler-rt] Deprecate LLVM_ENABLE_PROJECTS in favor of LLVM_ENABLE_RUNTIMES
We plan to make this a hard error in the LLVM 21 release. Link llvm#124012
1 parent 5cde6d2 commit 379cc60

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ if ("libc" IN_LIST LLVM_ENABLE_PROJECTS)
157157
"https://libc.llvm.org/ for building the runtimes.")
158158
endif()
159159

160+
if ("compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS)
161+
message(WARNING "Using LLVM_ENABLE_PROJECTS=compiler-rt is deprecated now, and will "
162+
"become a fatal error in the LLVM 21 release. Please use "
163+
"-DLLVM_ENABLE_RUNTIMES=compiler-rt or see the instructions at "
164+
"https://compiler-rt.llvm.org/ for building the runtimes.")
165+
endif()
166+
160167
# Select the runtimes to build
161168
#
162169
# As we migrate runtimes to using the bootstrapping build, the set of default runtimes

0 commit comments

Comments
 (0)