github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/tools/rules_go_symbols.patch (about) 1 diff --git a/go/private/rules/test.bzl b/go/private/rules/test.bzl 2 index 17516ad7..76b6c68c 100644 3 --- a/go/private/rules/test.bzl 4 +++ b/go/private/rules/test.bzl 5 @@ -117,9 +117,6 @@ def _go_test_impl(ctx): 6 ) 7 8 test_gc_linkopts = gc_linkopts(ctx) 9 - if not go.mode.debug: 10 - # Disable symbol table and DWARF generation for test binaries. 11 - test_gc_linkopts.extend(["-s", "-w"]) 12 13 # Link in the run_dir global for bzltestutil 14 test_gc_linkopts.extend(["-X", "github.com/bazelbuild/rules_go/go/tools/bzltestutil.RunDir=" + run_dir])