Skip to content

Commit

Permalink
fix: copy PDBs for EFI targets
Browse files Browse the repository at this point in the history
EFI also uses the PE format with .pdb files, and rustc generates them,
but Cargo does not copy them out of target/*/deps. This is an oversight,
so this PR fixes it.

Related: rust-osdev/uefi-rs#289
Related: #5179
  • Loading branch information
lf- committed Sep 19, 2023
1 parent 4c10811 commit 9357504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/build_context/target_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ impl TargetInfo {
// the names to match.
should_replace_hyphens: false,
})
} else if target_triple.ends_with("-msvc") {
} else if target_triple.ends_with("-msvc") || target_triple.ends_with("-uefi") {
ret.push(FileType {
suffix: ".pdb".to_string(),
prefix: prefix.clone(),
Expand Down

0 comments on commit 9357504

Please sign in to comment.