[llvm] [cmake] Propagate compiler launchers into runtimes and builtins sub-builds (PR #219825)
Vlad Petric via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 30 11:34:20 PDT 2026
================
@@ -175,6 +175,13 @@ function(llvm_ExternalProject_Add name source_dir)
endif ()
set(DEFAULT_PASSTHROUGH_VARIABLES
+ # Compiler launchers have to reach the sub-build. They are set on the
+ # top-level project, but each runtimes/builtins sub-build is a separate
+ # CMake project, so without forwarding them a compilation cache configured
+ # for the build silently does not cover the runtimes at all.
+ CMAKE_C_COMPILER_LAUNCHER
+ CMAKE_CXX_COMPILER_LAUNCHER
+ CMAKE_ASM_COMPILER_LAUNCHER
----------------
vladpetric wrote:
Good call, thanks — I hadn't clocked that the PR description becomes the squashed commit message, so all of that would have ended up in the log.
Filed #219831 with the measurements, the reproduction steps and the `LLVM_CCACHE_BUILD` side of it, and cut the description here down to three paragraphs pointing at it.
https://github.com/llvm/llvm-project/pull/219825
More information about the llvm-commits
mailing list