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 | 84fbb9841945c9339b1dbcd6ee03b12cd8cccdbb (patch) | |
tree | 7aefacc43133c6bf2df1e56acf4890d3947a8b14 /src/race.bat | |
parent | f713639d7792233408b0834ed0671d26d8d53f8f (diff) | |
download | go-84fbb9841945c9339b1dbcd6ee03b12cd8cccdbb.tar.gz |
race.bash, race.bat: build a race enabled cmd/cgo before trying to use it
Fixes issue 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://codereview.appspot.com/14071044
Diffstat (limited to 'src/race.bat')
-rw-r--r-- | src/race.bat | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/race.bat b/src/race.bat index 989a2e7d8..0a6aee9e2 100644 --- a/src/race.bat +++ b/src/race.bat @@ -29,6 +29,9 @@ goto fail :continue call make.bat --no-banner --no-local if %GOBUILDFAIL%==1 goto end +:: golang.org/issue/5537 - we must build a race enabled cmd/cgo before trying to use it. +echo # go install -race cmd/cgo +go install -race cmd/cgo echo # go install -race std go install -race std if errorlevel 1 goto fail |