aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mbf/main.go')
-rw-r--r--cmd/mbf/main.go13
1 files changed, 11 insertions, 2 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go
index 1a8cf743..4c7030e2 100644
--- a/cmd/mbf/main.go
+++ b/cmd/mbf/main.go
@@ -782,11 +782,20 @@ func main() {
"Remove identifiers not reachable by loaded packages",
func([]string) error {
return cm.Do(func(cache *pkg.Cache) error {
- t := rosa.Native().Std()
+ t := rosa.Native().Clone().Std()
+ a := t.Append(nil, t.CollectAll()...)
+ for arch := range pkg.Arch() {
+ if arch == runtime.GOARCH {
+ continue
+ }
+ t.DropCaches(arch, t.Flags())
+ a = t.Append(a, t.CollectAll()...)
+ }
+
ids, checksums, err := cache.Clean(
flagDry,
!flagDeep,
- t.Append(nil, t.CollectAll()...)...,
+ a...,
)
log.Printf(
"destroyed %d identifier and %d checksum entries",