From 5138401209a70475451561b18d2c6d92bda93810 Mon Sep 17 00:00:00 2001 From: Than McIntosh Date: Mon, 7 Feb 2022 16:32:01 -0500 Subject: [PATCH] runtime: remove use of -mnop-fun-dllimport from cgotest win.go 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 Reviewed-by: Alex Brainman Trust: Than McIntosh Run-TryBot: Than McIntosh TryBot-Result: Gopher Robot --- src/runtime/testdata/testprogcgo/windows/win.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/runtime/testdata/testprogcgo/windows/win.go b/src/runtime/testdata/testprogcgo/windows/win.go index 12488aa6588..9d9f86c9bea 100644 --- a/src/runtime/testdata/testprogcgo/windows/win.go +++ b/src/runtime/testdata/testprogcgo/windows/win.go @@ -1,8 +1,6 @@ package windows /* -#cgo amd64 386 CFLAGS: -mnop-fun-dllimport - #include DWORD agetthread() {