]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove use of -mnop-fun-dllimport from cgotest win.go
authorThan McIntosh <thanm@google.com>
Mon, 7 Feb 2022 21:32:01 +0000 (16:32 -0500)
committerThan McIntosh <thanm@google.com>
Thu, 31 Mar 2022 15:59:22 +0000 (15:59 +0000)
This flag is not supported by clang, so remove it from the cgo cflags
when building for windows. It is clear that it was needed at some
point in the past, but it doesn't appear to be needed at the moment,
since all.bash passes on windows without it now.

Updates #35006.

Change-Id: Ib06c891f516654138e3363e06645cd187e46ce4e
Reviewed-on: https://go-review.googlesource.com/c/go/+/383838
Trust: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Trust: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/runtime/testdata/testprogcgo/windows/win.go

index 12488aa6588b08c6ac9c13495a59401463b2bdfd..9d9f86c9beacb5e6ca73bd58510708db90326af0 100644 (file)
@@ -1,8 +1,6 @@
 package windows
 
 /*
-#cgo amd64 386 CFLAGS: -mnop-fun-dllimport
-
 #include <windows.h>
 
 DWORD agetthread() {