aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/main.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-25 01:05:49 +0900
committerOphestra <cat@gensokyo.uk>2026-02-25 01:05:49 +0900
commit2b93631f5274e5606358cb5af648c4361e8f3950 (patch)
treee564664d8b3eb7fced4d58535973e64166b56638 /cmd/mbf/main.go
parentb3749aaf0b5f70bff514cf83619a8b485fb090ed (diff)
cmd/mbf: use stage2 musl when possible
This avoids pulling in the stage3 toolchain when it is not requested. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf/main.go')
-rw-r--r--cmd/mbf/main.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go
index 017f45c5..0b6cff82 100644
--- a/cmd/mbf/main.go
+++ b/cmd/mbf/main.go
@@ -270,10 +270,12 @@ func main() {
root = append(root, rosa.Std.Load(p))
}
- musl, compilerRT, runtimes, clang := rosa.Std.NewLLVM()
- root = append(root, musl)
if flagWithToolchain {
- root = append(root, compilerRT, runtimes, clang)
+ musl, compilerRT, runtimes, clang := rosa.Std.NewLLVM()
+ root = append(root, musl, compilerRT, runtimes, clang)
+ } else {
+ musl, _, _, _ := (rosa.Std - 1).NewLLVM()
+ root = append(root, musl)
}
root = append(root,
rosa.Std.Load(rosa.Mksh),