about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniil Belov <70999565+BelovDV@users.noreply.github.com>2022-10-19 14:42:41 +0300
committerDaniil Belov <70999565+BelovDV@users.noreply.github.com>2022-10-19 15:45:51 +0300
commit5642a751ecc76fff232351f5686d49475fb06a09 (patch)
tree169fdce79225b37eec8ffec4486394b83ebb9f35
parent8be3ce9056d17f822704b8994f60668adf180fe8 (diff)
downloadrust-5642a751ecc76fff232351f5686d49475fb06a09.tar.gz
rust-5642a751ecc76fff232351f5686d49475fb06a09.zip
Add architectures to fn create_object_file
-rw-r--r--compiler/rustc_codegen_ssa/src/back/metadata.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/metadata.rs b/compiler/rustc_codegen_ssa/src/back/metadata.rs
index b92e146bee2..99ddd176478 100644
--- a/compiler/rustc_codegen_ssa/src/back/metadata.rs
+++ b/compiler/rustc_codegen_ssa/src/back/metadata.rs
@@ -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,
     };