]> Cypherpunks repositories - gostls13.git/commit
cmd/go: default to "exe" build mode for windows -race
authorThan McIntosh <thanm@google.com>
Wed, 6 Jul 2022 11:45:19 +0000 (07:45 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 7 Jul 2022 14:33:31 +0000 (14:33 +0000)
commiteaf21256545ae04a35fa070763faa6eb2098591d
tree615e4e64f2587a9a4f02a2372cfdf947f8998344
parent1243ec9c177007879958443262fe4d25099c5ede
cmd/go: default to "exe" build mode for windows -race

This patch changes the default build mode from "pie" to "exe" when
building programs on windows with "-race" in effect. The Go command
already issues an error if users explicitly ask for -buildmode=pie in
combination with -race on windows, but wasn't revising the default
"pie" build mode if a specific buildmode was not requested.

Updates #53539.
Updates #35006.

Change-Id: I2f81a41a1d15a0b4f5ae943146175c5a1202cbe0
Reviewed-on: https://go-review.googlesource.com/c/go/+/416174
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Than McIntosh <thanm@google.com>
src/cmd/go/internal/work/init.go