Skip to content

Commit

Permalink
Auto merge of rust-lang#103240 - BelovDV:issue-102290, r=petrochenkov
Browse files Browse the repository at this point in the history
Add architectures to fn create_object_file

Fixes rust-lang#102290

r? `@petrochenkov`
  • Loading branch information
bors committed Oct 22, 2022
2 parents 5a0f454 + 5642a75 commit 6e95b6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/rustc_codegen_ssa/src/back/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ pub(crate) fn create_object_file(sess: &Session) -> Option<write::Object<'static
"riscv32" => Architecture::Riscv32,
"riscv64" => Architecture::Riscv64,
"sparc64" => Architecture::Sparc64,
"avr" => Architecture::Avr,
"msp430" => Architecture::Msp430,
"hexagon" => Architecture::Hexagon,
"bpf" => Architecture::Bpf,
// Unsupported architecture.
_ => return None,
};
Expand Down

0 comments on commit 6e95b6d

Please sign in to comment.