]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/go: workaround -race issue on ppc64le
authorMatthew Dempsky <mdempsky@google.com>
Sun, 24 Jan 2021 20:26:47 +0000 (12:26 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 25 Jan 2021 17:07:19 +0000 (17:07 +0000)
commit8ee3d398383170e21ba2a63b3a45e1577f97c329
treeda292f9742701aa0950c2e8a0ee45b0c6716bc04
parent5a76c3d5485e5c5714a147e10a6bc55738ab0b90
[dev.regabi] cmd/go: workaround -race issue on ppc64le

The race detector on ppc64le corrupts command-line arguments lists if
they contain an empty string, and cmd/go often generates compiler
argument lists containing `-D ""`. Since this is equivalent to not
specifying the `-D` flag at all, just do that. This allows using a
race-detector-enabled cmd/compile on ppc64le.

Updates #43883.

Change-Id: Ifac5cd9a44932129438b9b0b3ecc6101ad3716b2
Reviewed-on: https://go-review.googlesource.com/c/go/+/286173
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/internal/work/gc.go