From 7e2210ff712232ebfcbb5907d8528570b222144e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 3 May 2026 19:46:07 +0900 Subject: internal/rosa/llvm: provide runtimes early in stage0 The LLVM build system fails to handle a dynamically linked toolchain correctly, and leaks the system installation during builds. Signed-off-by: Ophestra --- internal/rosa/all.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'internal/rosa/all.go') diff --git a/internal/rosa/all.go b/internal/rosa/all.go index ef3275d6..a9c4ae56 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -178,6 +178,18 @@ const ( PresetUnexportedStart llvmSource = iota - 1 + // earlyCompilerRT is an early, standalone compiler-rt installation for the + // standalone runtimes build. + // + // earlyCompilerRT must only be loaded by [LLVM]. + earlyCompilerRT + // earlyRuntimes is an early, standalone installation of LLVM runtimes to + // work around the cmake build system leaking the system LLVM installation + // when invoking the newly built toolchain. + // + // earlyRuntimes must only be loaded by [LLVM]. + earlyRuntimes + buildcatrust utilMacros -- cgit v1.3.1