From: Tobias Klauser Date: Tue, 11 Sep 2018 12:27:41 +0000 (+0200) Subject: cmd/dist: make raceDetectorSupported an exact copy of cmd/internal/sys.RaceDetectorSu... X-Git-Tag: go1.12beta1~1108 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c56dcd5fc7cd926b9d4a9c96a699a12f832317f1;p=gostls13.git cmd/dist: make raceDetectorSupported an exact copy of cmd/internal/sys.RaceDetectorSupported The comment states that cmd/internal/sys.RaceDetectorSupported is a copy, so make the two identical. No functional difference, since ppce64le is only supported on linux anyway. Change-Id: Id3e4d445fb700b9b3bb53bf15ea05b8911b4f95e Reviewed-on: https://go-review.googlesource.com/134595 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index 4cd854773f..2d7f7bd2f9 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -1469,8 +1469,10 @@ func (t *tester) packageHasBenchmarks(pkg string) bool { // because cmd/dist has to be buildable by Go 1.4. func raceDetectorSupported(goos, goarch string) bool { switch goos { - case "linux", "darwin", "freebsd", "netbsd", "windows": + case "linux": return goarch == "amd64" || goarch == "ppc64le" + case "darwin", "freebsd", "netbsd", "windows": + return goarch == "amd64" default: return false }