Skip to content

Commit b593110

Browse files
authored
[compiler-rt] Deprecate LLVM_ENABLE_PROJECTS in favor of LLVM_ENABLE_RUNTIMES (#124016)
We plan to make this a hard error in the LLVM 21 release. Link #124012
1 parent 4167ea2 commit b593110

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-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

llvm/docs/ReleaseNotes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ Changes to building LLVM
120120
------------------------
121121

122122
* Raised the minimum MSVC version to Visual Studio 2019 16.8.
123+
* Deprecated support for building compiler-rt with `LLVM_ENABLE_PROJECTS`.
124+
Users should instead use `LLVM_ENABLE_RUNTIMES`, either through the
125+
runtimes or the bootstrapping build.
126+
* Deprecated support for building libc with `LLVM_ENABLE_PROJECTS`.
127+
Users should instead use `LLVM_ENABLE_RUNTIMES`, either through the
128+
runtimes or the bootstrapping build.
123129

124130
Changes to TableGen
125131
-------------------

0 commit comments

Comments
 (0)