forked from security/hakurei
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>
This commit is contained in:
@@ -270,10 +270,12 @@ func main() {
|
|||||||
root = append(root, rosa.Std.Load(p))
|
root = append(root, rosa.Std.Load(p))
|
||||||
}
|
}
|
||||||
|
|
||||||
musl, compilerRT, runtimes, clang := rosa.Std.NewLLVM()
|
|
||||||
root = append(root, musl)
|
|
||||||
if flagWithToolchain {
|
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,
|
root = append(root,
|
||||||
rosa.Std.Load(rosa.Mksh),
|
rosa.Std.Load(rosa.Mksh),
|
||||||
|
|||||||
Reference in New Issue
Block a user