Skip to content

Commit

Permalink
ssa: don't pack debuginfo on windows not only msvc
Browse files Browse the repository at this point in the history
Small fix that prevents `thorin` from running on platforms where it
definitely shouldn't be running.

Signed-off-by: David Wood <[email protected]>
  • Loading branch information
davidtwco committed Apr 18, 2022
1 parent 1d207bb commit b786345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_ssa/src/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ fn link_natively<'a, B: ArchiveBuilder<'a>>(

// On MSVC packed debug information is produced by the linker itself so
// there's no need to do anything else here.
SplitDebuginfo::Packed if sess.target.is_like_msvc => {}
SplitDebuginfo::Packed if sess.target.is_like_windows => {}

// ... and otherwise we're processing a `*.dwp` packed dwarf file.
//
Expand Down

0 comments on commit b786345

Please sign in to comment.