mirror of
https://github.com/golang/go
synced 2024-11-22 04:14:42 -07:00
misc/dist: don't ship cmd/cov or cmd/prof
Fixes #3317 R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5784083
This commit is contained in:
parent
c898c519b0
commit
86c7bc6e8b
2
misc/dist/bindist.go
vendored
2
misc/dist/bindist.go
vendored
@ -43,6 +43,8 @@ const (
|
||||
)
|
||||
|
||||
var preBuildCleanFiles = []string{
|
||||
"src/cmd/cov",
|
||||
"src/cmd/prof",
|
||||
"src/pkg/exp",
|
||||
"src/pkg/old",
|
||||
}
|
||||
|
2
src/cmd/dist/build.c
vendored
2
src/cmd/dist/build.c
vendored
@ -1214,6 +1214,8 @@ clean(void)
|
||||
vinit(&dir);
|
||||
|
||||
for(i=0; i<nelem(cleantab); i++) {
|
||||
if((streq(cleantab[i], "cmd/cov") || streq(cleantab[i], "cmd/prof")) && !isdir(cleantab[i]))
|
||||
continue;
|
||||
bpathf(&path, "%s/src/%s", goroot, cleantab[i]);
|
||||
xreaddir(&dir, bstr(&path));
|
||||
// Remove generated files.
|
||||
|
Loading…
Reference in New Issue
Block a user