diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-14 02:06:08 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-14 02:07:13 +0900 |
| commit | e97f6a393f90c9a194dc9d19abf23b62fa17c987 (patch) | |
| tree | 74d899ebca362caad5f8c573d188a5cb98e17fdf /internal/rosa/rosa.go | |
| parent | eeffefd22b45b458af89f19e371fcac2179e1900 (diff) | |
internal/rosa/llvm: migrate runtimes and clang
This eliminates most newLLVM family of functions.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/rosa.go')
| -rw-r--r-- | internal/rosa/rosa.go | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go index b2ae683b..8e6d6063 100644 --- a/internal/rosa/rosa.go +++ b/internal/rosa/rosa.go @@ -328,24 +328,23 @@ mkdir -vp /work/system/bin name += "-std" } - boot := t - 1 - runtimes, clang := boot.NewLLVM() toybox := Toybox if flag&TEarly != 0 { toybox = toyboxEarly } - std := []pkg.Artifact{cureEtc{newIANAEtc()}, boot.Load(Musl)} - toolchain := []pkg.Artifact{boot.Load(LLVMCompilerRT), runtimes, clang} - utils := []pkg.Artifact{ - boot.Load(Mksh), - boot.Load(toybox), - } + base := LLVMClang if flag&TNoToolchain != 0 { - toolchain = nil + base = Musl } - support = slices.Concat(extra, std, toolchain, utils) + support = slices.Concat(extra, (t-1).AppendPresets([]pkg.Artifact{ + cureEtc{newIANAEtc()}, + }, + base, + Mksh, + toybox, + )) env = fixupEnviron(env, []string{ EnvTriplet + "=" + triplet(), lcMessages, |
