diff options
author | Adin Scannell <ascannell@google.com> | 2021-02-02 09:34:29 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-02-02 09:37:09 -0800 |
commit | 3817c7349de2dde950fd65dcab1f4859c095eeaf (patch) | |
tree | d50e24f2443a517c425e28e188e5dc797e778f39 /tools/rules_go_symbols.patch | |
parent | 00d21b9ae0e379caba54720c71f200596100c8f0 (diff) |
Remove go_tool_library references.
This is required only for the built-in bazel nogo functionality.
Since we roll these targets manually via the wrappers, we don't need
to use go_tool_library. The inconsistent use of these targets leads
to conflicting instantiations of go_default_library and go_tool_library,
which both contain the same output files.
PiperOrigin-RevId: 355184975
Diffstat (limited to 'tools/rules_go_symbols.patch')
-rw-r--r-- | tools/rules_go_symbols.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/rules_go_symbols.patch b/tools/rules_go_symbols.patch new file mode 100644 index 000000000..5e1e87084 --- /dev/null +++ b/tools/rules_go_symbols.patch @@ -0,0 +1,14 @@ +diff --git a/go/private/rules/test.bzl b/go/private/rules/test.bzl +index 17516ad7..76b6c68c 100644 +--- a/go/private/rules/test.bzl ++++ b/go/private/rules/test.bzl +@@ -121,9 +121,6 @@ def _go_test_impl(ctx): + ) + + test_gc_linkopts = gc_linkopts(ctx) +- if not go.mode.debug: +- # Disable symbol table and DWARF generation for test binaries. +- test_gc_linkopts.extend(["-s", "-w"]) + + # Now compile the test binary itself + test_library = GoLibrary( |