1
Fork 0

Correct test which wasn't failing correctly

This commit is contained in:
Andy Wang 2021-12-06 19:51:58 +00:00
parent 32810223c6
commit 95fd357d8a
No known key found for this signature in database
GPG key ID: 181B49F9F38F3374

View file

@ -5,11 +5,11 @@
all: packed remapped
remapped:
$(RUSTC) -Z unstable-options -C split-debuginfo=packed -C debuginfo=2 --remap-path-prefix $$PWD=/a foo.rs -g
objdump -Wi $(TMPDIR)/foo | grep $$PWD && exit 1 || exit 0
$(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 $$PWD=/a foo.rs -g
objdump -Wi $(TMPDIR)/foo | grep $$PWD && exit 1 || exit 0
$(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