diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-08-31 08:47:18 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-31 08:47:18 +0900 |
| commit | 9642e4840b315e5d10b0ffa7344eb05afbec56b9 (patch) | |
| tree | 19c67275870f883fd57008380b5ff46bfbe3c244 | |
| parent | 3de558dd2dab1726cd008baee350bec6bca83b4b (diff) | |
| parent | 1dd47b04c0c1b822fc85406ae540bb28396cfefd (diff) | |
| download | rust-9642e4840b315e5d10b0ffa7344eb05afbec56b9.tar.gz rust-9642e4840b315e5d10b0ffa7344eb05afbec56b9.zip | |
Rollup merge of #101088 - nicholasbishop:bishop-uefi-pdb, r=davidtwco
Set DebuginfoKind::Pdb in msvc_base This PDB setting was added to `windows_msvc_base` in https://github.com/rust-lang/rust/pull/98051. It's also needed for the UEFI targets, and since `uefi_msvc_base` and `windows_msvc_base` are the only things that inherit from `msvc_base`, just move the PDB setting up to `mscv_base` to cover both. Fixes https://github.com/rust-lang/rust/issues/101071
| -rw-r--r-- | compiler/rustc_target/src/spec/msvc_base.rs | 3 | ||||
| -rw-r--r-- | compiler/rustc_target/src/spec/windows_msvc_base.rs | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_target/src/spec/msvc_base.rs b/compiler/rustc_target/src/spec/msvc_base.rs index ec9609a2b26..b3cd38a6ec3 100644 --- a/compiler/rustc_target/src/spec/msvc_base.rs +++ b/compiler/rustc_target/src/spec/msvc_base.rs @@ -1,4 +1,4 @@ -use crate::spec::{LinkerFlavor, LldFlavor, SplitDebuginfo, TargetOptions}; +use crate::spec::{DebuginfoKind, LinkerFlavor, LldFlavor, SplitDebuginfo, TargetOptions}; use std::borrow::Cow; pub fn opts() -> TargetOptions { @@ -20,6 +20,7 @@ pub fn opts() -> TargetOptions { // where `*.pdb` files show up next to the final artifact. split_debuginfo: SplitDebuginfo::Packed, supported_split_debuginfo: Cow::Borrowed(&[SplitDebuginfo::Packed]), + debuginfo_kind: DebuginfoKind::Pdb, ..Default::default() } diff --git a/compiler/rustc_target/src/spec/windows_msvc_base.rs b/compiler/rustc_target/src/spec/windows_msvc_base.rs index 67282c19541..21062c337d8 100644 --- a/compiler/rustc_target/src/spec/windows_msvc_base.rs +++ b/compiler/rustc_target/src/spec/windows_msvc_base.rs @@ -1,4 +1,4 @@ -use crate::spec::{cvs, DebuginfoKind, TargetOptions}; +use crate::spec::{cvs, TargetOptions}; pub fn opts() -> TargetOptions { let base = super::msvc_base::opts(); @@ -28,7 +28,6 @@ pub fn opts() -> TargetOptions { // not ever be possible for us to pass this flag. no_default_libraries: false, has_thread_local: true, - debuginfo_kind: DebuginfoKind::Pdb, ..base } |
