Skip to content

Commit 68cf80d

Browse files
mengzhuorandall77
authored andcommitted
cmd/racebuild: add linux/arm64
Change-Id: Ieaac19bca46410a2d4f9648278a6307236d69e1e Reviewed-on: https://go-review.googlesource.com/c/build/+/198397 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent f24504d commit 68cf80d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

cmd/racebuild/racebuild.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,25 @@ cp compiler-rt/lib/tsan/go/race_linux_ppc64le.syso go/src/runtime/race
113113
# (cd go/src && ./race.bash)
114114
`,
115115
},
116+
&Platform{
117+
OS: "linux",
118+
Arch: "arm64",
119+
Type: "linux-arm64-packet",
120+
Script: `#!/usr/bin/env bash
121+
set -e
122+
apt-get update
123+
apt-get install -y git g++
124+
git clone https://go.googlesource.com/go
125+
pushd go
126+
git checkout $GOREV
127+
popd
128+
git clone https://git.llvm.org/git/compiler-rt.git
129+
(cd compiler-rt && git checkout $REV)
130+
(cd compiler-rt/lib/tsan/go && ./buildgo.sh)
131+
cp compiler-rt/lib/tsan/go/race_linux_arm64.syso go/src/runtime/race
132+
(cd go/src && ./race.bash)
133+
`,
134+
},
116135
&Platform{
117136
OS: "netbsd",
118137
Arch: "amd64",

0 commit comments

Comments
 (0)