mirror of
https://github.com/golang/go.git
synced 2025-05-20 14:53:23 +00:00
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 <iant@google.com> Run-TryBot: Joel Sing <joel@sing.id.au> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
ae6af9b3d8
commit
17fce63239
2
src/cmd/dist/test.go
vendored
2
src/cmd/dist/test.go
vendored
@ -1585,7 +1585,7 @@ func raceDetectorSupported(goos, goarch string) bool {
|
||||
return goarch == "amd64" || goarch == "ppc64le" || goarch == "arm64" || goarch == "s390x"
|
||||
case "darwin":
|
||||
return goarch == "amd64" || goarch == "arm64"
|
||||
case "freebsd", "netbsd", "openbsd", "windows":
|
||||
case "freebsd", "netbsd", "windows":
|
||||
return goarch == "amd64"
|
||||
default:
|
||||
return false
|
||||
|
@ -26,7 +26,7 @@ func RaceDetectorSupported(goos, goarch string) bool {
|
||||
return goarch == "amd64" || goarch == "ppc64le" || goarch == "arm64" || goarch == "s390x"
|
||||
case "darwin":
|
||||
return goarch == "amd64" || goarch == "arm64"
|
||||
case "freebsd", "netbsd", "openbsd", "windows":
|
||||
case "freebsd", "netbsd", "windows":
|
||||
return goarch == "amd64"
|
||||
default:
|
||||
return false
|
||||
|
Loading…
x
Reference in New Issue
Block a user