rust/compiler/rustc_session/src
David Wood 08ed338f56 sess/cg: re-introduce split dwarf kind
In #79570, `-Z split-dwarf-kind={none,single,split}` was replaced by `-C
split-debuginfo={off,packed,unpacked}`. `-C split-debuginfo`'s packed
and unpacked aren't exact parallels to single and split, respectively.

On Unix, `-C split-debuginfo=packed` will put debuginfo into object
files and package debuginfo into a DWARF package file (`.dwp`) and
`-C split-debuginfo=unpacked` will put debuginfo into dwarf object files
and won't package it.

In the initial implementation of Split DWARF, split mode wrote sections
which did not require relocation into a DWARF object (`.dwo`) file which
was ignored by the linker and then packaged those DWARF objects into
DWARF packages (`.dwp`). In single mode, sections which did not require
relocation were written into object files but ignored by the linker and
were not packaged. However, both split and single modes could be
packaged or not, the primary difference in behaviour was where the
debuginfo sections that did not require link-time relocation were
written (in a DWARF object or the object file).

This commit re-introduces a `-Z split-dwarf-kind` flag, which can be
used to pick between split and single modes when `-C split-debuginfo` is
used to enable Split DWARF (either packed or unpacked).

Signed-off-by: David Wood <david.wood@huawei.com>
2022-01-06 09:32:42 +00:00
..
cgu_reuse_tracker.rs
code_stats.rs
config.rs sess/cg: re-introduce split dwarf kind 2022-01-06 09:32:42 +00:00
cstore.rs Import SourceFiles from crate before decoding foreign Span 2021-12-23 12:56:12 -05:00
filesearch.rs Use IntoIterator for array impl everywhere. 2021-12-04 19:40:33 +01:00
lib.rs Use derive_default_enum in the compiler 2021-11-22 20:17:53 -05:00
options.rs sess/cg: re-introduce split dwarf kind 2022-01-06 09:32:42 +00:00
output.rs Auto merge of #91957 - nnethercote:rm-SymbolStr, r=oli-obk 2021-12-19 09:31:37 +00:00
parse.rs review comment: plural of emoji is emoji 2021-11-23 20:36:19 +00:00
search_paths.rs
session.rs Auto merge of #91555 - matthiaskrgr:rollup-pq0iaq7, r=matthiaskrgr 2021-12-05 15:33:44 +00:00
utils.rs