[clang] [CMake][Release] Stop linking against stage1 runtimes (PR #164017)

Cullen Rhodes via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 21 00:07:34 PDT 2025


================
@@ -44,6 +44,19 @@ set(LLVM_RELEASE_ENABLE_LTO THIN CACHE STRING "")
 set(LLVM_RELEASE_ENABLE_PGO ON CACHE BOOL "")
 set(LLVM_RELEASE_ENABLE_RUNTIMES ${DEFAULT_RUNTIMES} CACHE STRING "")
 set(LLVM_RELEASE_ENABLE_PROJECTS ${DEFAULT_PROJECTS} CACHE STRING "")
+
+# This option enables linking stage2 clang statically with the runtimes
+# (libc++ and compiler-rt) from stage1.  In theory this will give the
----------------
c-rhodes wrote:

sorry you can ignore me, I was looking at `STAGE1_RUNTIMES` being set regardless of this flag but of course that's only to build, the linking bit comes later.

https://github.com/llvm/llvm-project/pull/164017


More information about the cfe-commits mailing list