Skip to content

Commit 17fce63

Browse files
committed
cmd/dist,internal/platform: temporarily disable race detector on openbsd/amd64
Unfortunately, LLVM TSAN decided to remove OpenBSD support, which means that the syso files cannot currently be regenerated (see #52090). The race_openbsd.syso contains a reference to the syscall symbol, which has been removed from OpenBSD's libc in 7.5. As such, this means that the race detector no longer works on openbsd/amd64 (at least until LLVM TSAN support is reinstated for OpenBSD). Updates #63900 Change-Id: I3474fc43a94e5197815862b7dc420b71d5e08815 Reviewed-on: https://go-review.googlesource.com/c/go/+/582255 Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Joel Sing <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: David Chase <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent ae6af9b commit 17fce63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cmd/dist/test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ func raceDetectorSupported(goos, goarch string) bool {
15851585
return goarch == "amd64" || goarch == "ppc64le" || goarch == "arm64" || goarch == "s390x"
15861586
case "darwin":
15871587
return goarch == "amd64" || goarch == "arm64"
1588-
case "freebsd", "netbsd", "openbsd", "windows":
1588+
case "freebsd", "netbsd", "windows":
15891589
return goarch == "amd64"
15901590
default:
15911591
return false

src/internal/platform/supported.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func RaceDetectorSupported(goos, goarch string) bool {
2626
return goarch == "amd64" || goarch == "ppc64le" || goarch == "arm64" || goarch == "s390x"
2727
case "darwin":
2828
return goarch == "amd64" || goarch == "arm64"
29-
case "freebsd", "netbsd", "openbsd", "windows":
29+
case "freebsd", "netbsd", "windows":
3030
return goarch == "amd64"
3131
default:
3232
return false

0 commit comments

Comments
 (0)