diff options
author | Jay Conrod <jayconrod@gmail.com> | 2018-08-13 12:43:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-13 12:43:17 -0400 |
commit | f299a80f5387ba30524a6e6171e01282e0063670 (patch) | |
tree | 983f5da7cafa5c3c5f9707f91c57ece1fff28f53 /go/private/actions/link.bzl | |
parent | 40030d65edcc25f5cfd4e8de50dcc7cdd9741045 (diff) | |
download | bazelbuild-rules_go-f299a80f5387ba30524a6e6171e01282e0063670.tar.gz |
Actions that use go.args may now use param files automatically (#1652)
Multiple param files are now supported as well.
Diffstat (limited to 'go/private/actions/link.bzl')
-rw-r--r-- | go/private/actions/link.bzl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/go/private/actions/link.bzl b/go/private/actions/link.bzl index 51b74d89..748ddbf9 100644 --- a/go/private/actions/link.bzl +++ b/go/private/actions/link.bzl @@ -88,8 +88,11 @@ def emit_link( if go.mode.link == LINKMODE_PLUGIN: tool_args.add_all(["-pluginpath", archive.data.importpath]) - builder_args.add_all([struct(archive = archive, test_archives = test_archives)], before_each = "-dep", - map_each = _map_archive) + builder_args.add_all( + [struct(archive = archive, test_archives = test_archives)], + before_each = "-dep", + map_each = _map_archive, + ) builder_args.add_all(test_archives, before_each = "-dep", map_each = _format_archive) # Build a list of rpaths for dynamic libraries we need to find. @@ -138,8 +141,6 @@ def emit_link( tool_args.add("-w") tool_args.add_joined("-extldflags", extldflags, join_with = " ") - builder_args.use_param_file("@%s") - builder_args.set_param_file_format("multiline") go.actions.run( inputs = sets.union( archive.libs, |