1
Fork 0

More in-depth documentation for the new debuginfo options

This commit is contained in:
Julia Tatz 2021-09-03 13:00:39 -04:00 committed by Jynn Nelson
parent 0504a33383
commit 7b453b9f5a
5 changed files with 18 additions and 11 deletions

View file

@ -951,6 +951,16 @@ pub mod debuginfo {
impl DebugEmissionKind {
pub fn from_generic(kind: rustc_session::config::DebugInfo) -> Self {
// We should be setting LLVM's emission kind to `LineTablesOnly` if
// we are compiling with "limited" debuginfo. However, some of the
// existing tools relied on slightly more debuginfo being generated than
// would be the case with `LineTablesOnly`, and we did not want to break
// these tools in a "drive-by fix", without a good idea or plan about
// what limited debuginfo should exactly look like. So for now we are
// instead adding a new debuginfo option "line-tables-only" so as to
// not break anything and to allow users to have 'limited' debug info.
//
// See https://github.com/rust-lang/rust/issues/60020 for details.
use rustc_session::config::DebugInfo;
match kind {
DebugInfo::None => DebugEmissionKind::NoDebug,