Auto merge of #103240 - BelovDV:issue-102290, r=petrochenkov

Add architectures to fn create_object_file

Fixes #102290

r? `@petrochenkov`
This commit is contained in:
bors 2022-10-22 19:14:34 +00:00
commit 6e95b6da88

View File

@ -117,6 +117,10 @@ pub(crate) fn create_object_file(sess: &Session) -> Option<write::Object<'static
"riscv32" => Architecture::Riscv32, "riscv32" => Architecture::Riscv32,
"riscv64" => Architecture::Riscv64, "riscv64" => Architecture::Riscv64,
"sparc64" => Architecture::Sparc64, "sparc64" => Architecture::Sparc64,
"avr" => Architecture::Avr,
"msp430" => Architecture::Msp430,
"hexagon" => Architecture::Hexagon,
"bpf" => Architecture::Bpf,
// Unsupported architecture. // Unsupported architecture.
_ => return None, _ => return None,
}; };