1
0
mirror of https://github.com/golang/go synced 2024-11-22 09:24:41 -07:00

misc/dist: don't ship race-enabled commands

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8350044
This commit is contained in:
Andrew Gerrand 2013-04-04 12:07:53 +11:00
parent 2a99f2fb2a
commit 1b9e36356b

View File

@ -197,6 +197,12 @@ func (b *Build) Do() error {
if err != nil {
return err
}
// Re-install std without -race, so that we're not left with
// a slower, race-enabled cmd/go, cmd/godoc, etc.
_, err = b.run(src, goCmd, "install", "-a", "std")
if err != nil {
return err
}
}
if err := b.tour(); err != nil {