summaryrefslogtreecommitdiff
path: root/src/race.bat
diff options
context:
space:
mode:
Diffstat (limited to 'src/race.bat')
-rw-r--r--src/race.bat3
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