]> Cypherpunks repositories - gostls13.git/commitdiff
misc/dist: don't ship race-enabled commands
authorAndrew Gerrand <adg@golang.org>
Thu, 4 Apr 2013 01:07:53 +0000 (12:07 +1100)
committerAndrew Gerrand <adg@golang.org>
Thu, 4 Apr 2013 01:07:53 +0000 (12:07 +1100)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8350044

misc/dist/bindist.go

index 1f5cfc817e1b331a006f11b377685d58e91f637e..d06a4f6e289c06bdc4ac68db62e14d33c4967c10 100644 (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 {