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 /compiler/rustc_session/src | |
| parent | 754f6d4a8cf1963a3446b20b20fd10f42df1ee41 (diff) | |
| download | rust-2b99b9fd25df59eb8b483e9809185f28d28199ed.tar.gz rust-2b99b9fd25df59eb8b483e9809185f28d28199ed.zip | |
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 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/config.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index 55576b4e0d1..46ae9b56a48 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -846,18 +846,6 @@ pub enum CrateType { ProcMacro, } -impl CrateType { - /// When generated, is this crate type an archive? - pub fn is_archive(&self) -> bool { - match *self { - CrateType::Rlib | CrateType::Staticlib => true, - CrateType::Executable | CrateType::Dylib | CrateType::Cdylib | CrateType::ProcMacro => { - false - } - } - } -} - #[derive(Clone, Hash, Debug, PartialEq, Eq)] pub enum Passes { Some(Vec<String>), |
