diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-18 14:49:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-18 14:49:38 +0100 |
| commit | 1c42199c8f62a4b4df6c71a047b28d1cbb075c7f (patch) | |
| tree | caf29580777bb9efb0c9200a8ab92029cd682555 /src/test/run-make-fulldeps | |
| parent | d3f300477b89e70dd42379ba53c0e8ff74e9c694 (diff) | |
| parent | 5e481d07d2f962cda0bdb76a1e6c19d99c1be847 (diff) | |
| download | rust-1c42199c8f62a4b4df6c71a047b28d1cbb075c7f.tar.gz rust-1c42199c8f62a4b4df6c71a047b28d1cbb075c7f.zip | |
Rollup merge of #91566 - cbeuw:remap-dwo-name, r=davidtwco
Apply path remapping to DW_AT_GNU_dwo_name when producing split DWARF `--remap-path-prefix` doesn't apply to paths to `.o` (in case of packed) or `.dwo` (in case of unpacked) files in `DW_AT_GNU_dwo_name`. GCC also has this bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91888
Diffstat (limited to 'src/test/run-make-fulldeps')
| -rw-r--r-- | src/test/run-make-fulldeps/split-dwarf/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/test/run-make-fulldeps/split-dwarf/Makefile b/src/test/run-make-fulldeps/split-dwarf/Makefile index ef61ff04501..eef04c767fb 100644 --- a/src/test/run-make-fulldeps/split-dwarf/Makefile +++ b/src/test/run-make-fulldeps/split-dwarf/Makefile @@ -2,7 +2,16 @@ # only-linux -all: +all: packed remapped + +remapped: + $(RUSTC) -Z unstable-options -C split-debuginfo=packed -C debuginfo=2 --remap-path-prefix $(TMPDIR)=/a foo.rs -g + objdump -Wi $(TMPDIR)/foo | grep DW_AT_GNU_dwo_name | (! grep $(TMPDIR)) || exit 1 + + $(RUSTC) -Z unstable-options -C split-debuginfo=unpacked -C debuginfo=2 --remap-path-prefix $(TMPDIR)=/a foo.rs -g + objdump -Wi $(TMPDIR)/foo | grep DW_AT_GNU_dwo_name | (! grep $(TMPDIR)) || exit 1 + +packed: $(RUSTC) -Z unstable-options -C split-debuginfo=packed -C debuginfo=2 foo.rs -g rm $(TMPDIR)/foo.dwp rm $(TMPDIR)/$(call BIN,foo) |
