internal/rosa/llvm: early-runtimes for gentoo stage only
Test / Create distribution (push) Successful in 59s
Test / Sandbox (push) Successful in 3m7s
Test / Hakurei (push) Successful in 4m34s
Test / Sandbox (race detector) (push) Successful in 5m50s
Test / Hakurei (race detector) (push) Successful in 7m4s
Test / ShareFS (push) Successful in 7m21s
Test / Flake checks (push) Successful in 1m5s

This bootstrap step is not required for a native Rosa OS stage0 distribution.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
cat
2026-08-25 15:26:35 +09:00
parent 18ba73c957
commit ce53fa9249
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ func init() {
meta.Version = _meta.Version meta.Version = _meta.Version
early := _muslHeaders early := _muslHeaders
if t.stage.isStage0() { if t.stage.isStage0() && !t.stage.isRosa() {
// The LLVM build system uses the system installation when building with // The LLVM build system uses the system installation when building with
// LLVM_LINK_LLVM_DYLIB, since it builds runtimes after the fact, using // LLVM_LINK_LLVM_DYLIB, since it builds runtimes after the fact, using
// the just-built toolchain. This is unacceptable in stage0 due to the // the just-built toolchain. This is unacceptable in stage0 due to the
+1 -1
View File
@@ -8,7 +8,7 @@ import (
) )
func TestLLVMInputs(t *testing.T) { func TestLLVMInputs(t *testing.T) {
const wantInputCount = 470 const wantInputCount = 466
_, llvm := rosa.MustLoad(rosa.H("llvm")) _, llvm := rosa.MustLoad(rosa.H("llvm"))
var n int var n int
+5
View File
@@ -129,6 +129,11 @@ const (
_stageEnd _stageEnd
) )
// isRosa returns whether t is derived from a Rosa OS stage0.
func (t Stage) isRosa() bool {
return t >= stageEarly
}
// isStage0 returns whether t is a stage0 toolchain. // isStage0 returns whether t is a stage0 toolchain.
func (t Stage) isStage0() bool { func (t Stage) isStage0() bool {
switch t { switch t {