summaryrefslogtreecommitdiff
path: root/src/race.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/race.bash')
-rwxr-xr-xsrc/race.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/race.bash b/src/race.bash
index 3cdc5e10c..18201f992 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