We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7774bab commit bacfbecCopy full SHA for bacfbec
go/private/actions/link.bzl
@@ -74,7 +74,9 @@ def emit_link(
74
tool_args.add("-race")
75
if go.mode.msan:
76
tool_args.add("-msan")
77
- if (go.mode.static and not go.mode.pure) or go.mode.link != LINKMODE_NORMAL:
+ if ((go.mode.static and not go.mode.pure) or
78
+ go.mode.link != LINKMODE_NORMAL or
79
+ go.mode.goos == "windows" and (go.mode.race or go.mode.msan)):
80
tool_args.add("-linkmode", "external")
81
if go.mode.static:
82
extldflags.append("-static")
0 commit comments