mirror of
https://github.com/golang/go
synced 2024-09-29 13:34:30 -06:00
cmd/compile: enable -d=checkptr even on windows
CL 201783 enable -d=checkptr when -race or -msan is specified everywhere but windows. But, now that all unsafe pointer conversions in the standard library are fixed, enable -d=checkptr even on windows. Updates #34964 Updates #34972 Change-Id: Id912fa83b0d5b46c6f1c134c742fd94d2d185835 Reviewed-on: https://go-review.googlesource.com/c/go/+/227003 Run-TryBot: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
9f40f9f4d3
commit
656f27ebf8
@ -379,9 +379,8 @@ func Main(archInit func(*Arch)) {
|
||||
if flag_race && flag_msan {
|
||||
log.Fatal("cannot use both -race and -msan")
|
||||
}
|
||||
if (flag_race || flag_msan) && objabi.GOOS != "windows" {
|
||||
// -race and -msan imply -d=checkptr for now (except on windows).
|
||||
// TODO(mdempsky): Re-evaluate before Go 1.14. See #34964.
|
||||
if flag_race || flag_msan {
|
||||
// -race and -msan imply -d=checkptr for now.
|
||||
Debug_checkptr = 1
|
||||
}
|
||||
if ispkgin(omit_pkgs) {
|
||||
|
Loading…
Reference in New Issue
Block a user