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:
parent
2a99f2fb2a
commit
1b9e36356b
6
misc/dist/bindist.go
vendored
6
misc/dist/bindist.go
vendored
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user