From 379cc60bcd88f0a1b83b6eed283154eee965d444 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 22 Jan 2025 21:17:49 +0000 Subject: [PATCH 1/2] [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 #124012 --- llvm/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index f14065ab03799..57a03517c3981 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -157,6 +157,13 @@ if ("libc" IN_LIST LLVM_ENABLE_PROJECTS) "https://libc.llvm.org/ for building the runtimes.") endif() +if ("compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS) + message(WARNING "Using LLVM_ENABLE_PROJECTS=compiler-rt is deprecated now, and will " + "become a fatal error in the LLVM 21 release. Please use " + "-DLLVM_ENABLE_RUNTIMES=compiler-rt or see the instructions at " + "https://compiler-rt.llvm.org/ for building the runtimes.") +endif() + # Select the runtimes to build # # As we migrate runtimes to using the bootstrapping build, the set of default runtimes From 35bc02ad6e253539ec99d3e88840c2518f285377 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Tue, 28 Jan 2025 06:31:59 +0000 Subject: [PATCH 2/2] Update release notes --- llvm/docs/ReleaseNotes.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/docs/ReleaseNotes.md b/llvm/docs/ReleaseNotes.md index 8f88b824f965a..6d18bc5478990 100644 --- a/llvm/docs/ReleaseNotes.md +++ b/llvm/docs/ReleaseNotes.md @@ -114,6 +114,12 @@ Changes to building LLVM ------------------------ * Raised the minimum MSVC version to Visual Studio 2019 16.8. +* Deprecated support for building compiler-rt with `LLVM_ENABLE_PROJECTS`. + Users should instead use `LLVM_ENABLE_RUNTIMES`, either through the + runtimes or the bootstrapping build. +* Deprecated support for building libc with `LLVM_ENABLE_PROJECTS`. + Users should instead use `LLVM_ENABLE_RUNTIMES`, either through the + runtimes or the bootstrapping build. Changes to TableGen -------------------