diff options
| author | Kyle Huey <khuey@kylehuey.com> | 2023-01-15 09:40:46 -0800 |
|---|---|---|
| committer | Kyle Huey <khuey@kylehuey.com> | 2023-01-15 09:40:46 -0800 |
| commit | 2b99b9fd25df59eb8b483e9809185f28d28199ed (patch) | |
| tree | c204a950a3063fddaa2c4e9da94e3a1f91ba9d67 /tests/run-make-fulldeps/split-debuginfo/Makefile | |
| parent | 754f6d4a8cf1963a3446b20b20fd10f42df1ee41 (diff) | |
Preserve split DWARF files when building archives.
The optimization that removes artifacts when building libraries is correct from the compiler's perspective but not from a debugger's perspective. Unpacked split debuginfo is referred to by filename and debuggers need the artifact that contains debuginfo to continue to exist at that path. Ironically the test expects the correct behavior but it was not running.
Diffstat (limited to 'tests/run-make-fulldeps/split-debuginfo/Makefile')
| -rw-r--r-- | tests/run-make-fulldeps/split-debuginfo/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run-make-fulldeps/split-debuginfo/Makefile b/tests/run-make-fulldeps/split-debuginfo/Makefile index 1831ab38fab..44cda0d3d11 100644 --- a/tests/run-make-fulldeps/split-debuginfo/Makefile +++ b/tests/run-make-fulldeps/split-debuginfo/Makefile @@ -254,12 +254,12 @@ unpacked-remapped-single: $(RUSTC) $(UNSTABLEOPTS) -C split-debuginfo=unpacked -C debuginfo=2 \ -Z split-dwarf-kind=single --remap-path-prefix $(TMPDIR)=/a foo.rs -g objdump -Wi $(TMPDIR)/foo | grep DW_AT_GNU_dwo_name | (! grep $(TMPDIR)) || exit 1 - ls $(TMPDIR)/*.o + rm $(TMPDIR)/*.o ls $(TMPDIR)/*.dwo && exit 1 || exit 0 ls $(TMPDIR)/*.dwp && exit 1 || exit 0 rm $(TMPDIR)/$(call BIN,foo) -unpacked-crosscrate: packed-crosscrate-split packed-crosscrate-single +unpacked-crosscrate: unpacked-crosscrate-split unpacked-crosscrate-single # - Debuginfo in `.dwo` files # - (bar) `.rlib` file created, contains `.dwo` |
