aboutsummaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2025-07-25 20:41:51 +1000
committerJoel Sing <joel@sing.id.au>2025-08-29 23:57:12 -0700
commit8bcda6c79d40f49363cd04cdaf5bd7909de8f94f (patch)
tree08b2fd4a0d36b177841a1df1348fb3235a3a1894 /src/internal
parent8377adafc548a0d9dab831477923d25ce4b10710 (diff)
downloadgo-8bcda6c79d40f49363cd04cdaf5bd7909de8f94f.tar.xz
runtime/race: add race detector support for linux/riscv64
This enables support for the race detector on linux/riscv64. Fixes #64345 Cq-Include-Trybots: luci.golang.try:gotip-linux-riscv64 Change-Id: I98962827e91455404858549b0f9691ee438f104b Reviewed-on: https://go-review.googlesource.com/c/go/+/690497 Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Meng Zhuo <mengzhuo1203@gmail.com> Reviewed-by: Carlos Amedee <carlos@golang.org>
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/platform/supported.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/platform/supported.go b/src/internal/platform/supported.go
index a07b66d394..f9706a6988 100644
--- a/src/internal/platform/supported.go
+++ b/src/internal/platform/supported.go
@@ -23,7 +23,7 @@ func (p OSArch) String() string {
func RaceDetectorSupported(goos, goarch string) bool {
switch goos {
case "linux":
- return goarch == "amd64" || goarch == "ppc64le" || goarch == "arm64" || goarch == "s390x" || goarch == "loong64"
+ return goarch == "amd64" || goarch == "arm64" || goarch == "loong64" || goarch == "ppc64le" || goarch == "riscv64" || goarch == "s390x"
case "darwin":
return goarch == "amd64" || goarch == "arm64"
case "freebsd", "netbsd", "windows":