diff options
author | Dmitriy Vyukov <dvyukov@google.com> | 2013-12-17 12:59:13 +0400 |
---|---|---|
committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-12-17 12:59:13 +0400 |
commit | 830f9ac030a99265379fcbff8f40d66f4fa3e669 (patch) | |
tree | a1fddc2df0452bb5687cc6ce795bfab043c04872 /src/race.bat | |
parent | 98f16ad1123ffcdec1122a0f7b535b590e879423 (diff) | |
download | go-830f9ac030a99265379fcbff8f40d66f4fa3e669.tar.gz go-830f9ac030a99265379fcbff8f40d66f4fa3e669.zip |
race.bat: fix env setup
Currently it fails as:
go tool dist: $GOROOT is not set correctly or not exported
GOROOT=c:\go
c:\go\include\u.h does not exist
Fail.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/42550044
Diffstat (limited to 'src/race.bat')
-rw-r--r-- | src/race.bat | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/race.bat b/src/race.bat index 0a6aee9e2b..65b76cd61a 100644 --- a/src/race.bat +++ b/src/race.bat @@ -15,6 +15,7 @@ echo race.bat must be run from go\src goto end :ok +set GOROOT=%CD%\.. call make.bat --dist-tool >NUL if errorlevel 1 goto fail .\cmd\dist\dist env -wp >env.bat @@ -35,7 +36,7 @@ go install -race cmd/cgo echo # go install -race std go install -race std if errorlevel 1 goto fail -echo # go test -race -short -std +echo # go test -race -short std go test -race -short std if errorlevel 1 goto fail echo # go test -race -run=nothingplease -bench=.* -benchtime=.1s -cpu=4 std |