From c76befe0f40dfbb38a54c16d1845b97e4580797c Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Sun, 26 Apr 2020 10:40:38 +1000 Subject: cmd/go: use -buildmode=pie as default on window This change adjusts go command to pass -buildmode=pie to cmd/link, if -buildmode is not explicitly provided. Fixes #35192 Change-Id: Iec020131e676eb3e9a2df9eea1929b2af2b6df04 Reviewed-on: https://go-review.googlesource.com/c/go/+/230217 Run-TryBot: Alex Brainman TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- src/cmd/nm/nm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/nm/nm_test.go') diff --git a/src/cmd/nm/nm_test.go b/src/cmd/nm/nm_test.go index 7dfb482b18..a49423b212 100644 --- a/src/cmd/nm/nm_test.go +++ b/src/cmd/nm/nm_test.go @@ -170,7 +170,7 @@ func testGoExec(t *testing.T, iscgo, isexternallinker bool) { return true } } - if runtime.GOOS == "windows" && runtime.GOARCH == "arm" { + if runtime.GOOS == "windows" { return true } return false -- cgit v1.3