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 03d5660 commit f569872Copy full SHA for f569872
go/private/actions/link.bzl
@@ -87,6 +87,10 @@ def emit_link(
87
# Using the C linker avoids that. Race and msan always require a
88
# a C toolchain. See #2614.
89
tool_args.add("-linkmode", "external")
90
+ if go.mode.pure:
91
+ # Force internal linking in pure mode. We don't have a C toolchain,
92
+ # so external linking is not possible.
93
+ tool_args.add("-linkmode", "internal")
94
if go.mode.static:
95
extldflags.append("-static")
96
if go.mode.link != LINKMODE_NORMAL:
0 commit comments