Skip to content

Commit 94deb14

Browse files
author
Bryan C. Mills
committed
cmd/racebuild: install Git and GCC on the Windows builder
Note that compiler-rt/lib/tsan/go/build.bat has been broken since https://reviews.llvm.org/D28596 (git commit 6ef4606343358c8f0365f7741b5033c42fbabb0e), so we have to use an older version until it can be fixed. compiler-rt commit ae08a22cc215448aa3ad5a6fb099f6df77e9fa01 is the most recent one that builds, but it fails tests (golang/go#22687). Updates golang/go#24354. Updates golang/go#22687. Change-Id: I36ba47fc955111143707224068e687168dbda4ff Reviewed-on: https://go-review.googlesource.com/112895 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 763dc24 commit 94deb14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/racebuild/racebuild.go

+6
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ cp compiler-rt/lib/tsan/go/race_netbsd_amd64.syso go/src/runtime/race
116116
Arch: "amd64",
117117
Type: "windows-amd64-race",
118118
Script: `
119+
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
120+
choco install git -y
121+
if %errorlevel% neq 0 exit /b %errorlevel%
122+
choco install mingw -y
123+
if %errorlevel% neq 0 exit /b %errorlevel%
124+
call refreshenv
119125
git clone https://go.googlesource.com/go
120126
if %errorlevel% neq 0 exit /b %errorlevel%
121127
git clone http://llvm.org/git/compiler-rt.git

0 commit comments

Comments
 (0)