From ce06539ecaf07b5fe572b3c190b69bd01aaa7c93 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 9 Jun 2026 16:01:12 +0900 Subject: internal/rosa: expose supported architectures This information is useful to external tooling and makes a lot more sense in this package than cmd/mbf. This change also fixes non-native artifact resolution during clean. Signed-off-by: Ophestra --- cmd/mbf/main.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'cmd/mbf/main.go') diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index 07ce8f0e..e4c6af96 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -883,13 +883,19 @@ func main() { func([]string) error { return cm.Do(func(cache *pkg.Cache) error { t := rosa.Native().Clone().Std() - a := t.Append(nil, t.CollectAll()...) - for arch := range pkg.Arch() { + handles := t.CollectAll() + + flags := t.Flags() + a := t.Append(nil, handles...) + for arch := range rosa.Arches(nil) { if arch == runtime.GOARCH { continue } - t.DropCaches(arch, t.Flags()) - a = t.Append(a, t.CollectAll()...) + + t.DropCaches(arch, rosa.OptLLVMNoLTO|rosa.OptSkipCheck) + a = t.Append(a, handles...) + t.DropCaches(arch, flags) + a = t.Append(a, handles...) } ids, checksums, err := cache.Clean( -- cgit v1.3.1