diff --git a/src/cmd/dist/build.c b/src/cmd/dist/build.c index b8a135515a..b2f852fce3 100644 --- a/src/cmd/dist/build.c +++ b/src/cmd/dist/build.c @@ -1285,6 +1285,15 @@ clean(void) xremove(bpathf(&b, "%s/%s", bstr(&path), cleantab[i]+4)); } + // remove src/pkg/runtime/z* unconditionally + vreset(&dir); + bpathf(&path, "%s/src/pkg/runtime", goroot); + xreaddir(&dir, bstr(&path)); + for(j=0; j