diff options
author | Dave Cheney <dave@cheney.net> | 2013-09-29 10:34:41 +1000 |
---|---|---|
committer | Dave Cheney <dave@cheney.net> | 2013-09-29 10:34:41 +1000 |
commit | cdb33231b2d988b71f03f622fc9c3d2edccc20e0 (patch) | |
tree | 60a074ba438b2775b2a14d5d5852775dcc4b1c04 /src/race.bash | |
parent | 4da408f676087d6e22356e2564a3e23d49440d16 (diff) | |
download | go-cdb33231b2d988b71f03f622fc9c3d2edccc20e0.tar.gz go-cdb33231b2d988b71f03f622fc9c3d2edccc20e0.zip |
race.bash, race.bat: build a race enabled cmd/cgo before trying to use it
Fixes #5537.
To avoid `go install -v race std` replacing cmd/cgo with a race enabled version and another package trying to build a cgo enabled package, always build cmd/cgo race enabled before doing the rest of the build.
R=remyoudompheng, rsc, dvyukov, minux.ma
CC=golang-dev
https://golang.org/cl/14071044
Diffstat (limited to 'src/race.bash')
-rwxr-xr-x | src/race.bash | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/race.bash b/src/race.bash index 3cdc5e10c1..18201f992c 100755 --- a/src/race.bash +++ b/src/race.bash @@ -35,6 +35,8 @@ if [ ! -f make.bash ]; then exit 1 fi . ./make.bash --no-banner +# golang.org/issue/5537 - we must build a race enabled cmd/cgo before trying to use it. +go install -race cmd/cgo go install -race std go test -race -short std go test -race -run=nothingplease -bench=.* -benchtime=.1s -cpu=4 std |