diff options
| author | Jay Conrod <jayconrod@google.com> | 2019-12-19 13:43:24 -0500 |
|---|---|---|
| committer | Jay Conrod <jayconrod@google.com> | 2020-04-29 19:03:10 +0000 |
| commit | 35dce1d67c730a0f49c82660e94fe8305cac6861 (patch) | |
| tree | 54f74a651461478c733c2c637decdd1c8ee19fcd /src/runtime/export_debug_test.go | |
| parent | 5a550b695117f07a4f2454039a4871250cd3ed09 (diff) | |
| download | go-35dce1d67c730a0f49c82660e94fe8305cac6861.tar.xz | |
cmd/go: trim source paths when compiling C with -trimpath
When then go command is run with -trimpath, it will now use
-fdebug-prefix-map when invoking the C compiler (if supported) to
replace the source root directory with a dummy root directory.
This should prevent source directories from appearing either literally
or in compressed DWARF in linked binaries.
Updates #36072
Change-Id: Iedd08d5e886f81e981f11248a1be4ed4f58bdd29
Reviewed-on: https://go-review.googlesource.com/c/go/+/212101
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/runtime/export_debug_test.go')
0 files changed, 0 insertions, 0 deletions
