diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-07 20:28:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-07 20:28:19 +0200 |
| commit | 04ab8e385c0bfdfe41d680eb5d9ce8ed5f4ba76a (patch) | |
| tree | e8aa1097d247009d00d5f8ba854a7bc9d65dab76 /compiler/rustc_codegen_ssa | |
| parent | e5a3c32ffa5c4e26e82955f26352e9d9a6bcd05d (diff) | |
| parent | d1d21ede82614f2b575cb16bcbabe75183721740 (diff) | |
| download | rust-04ab8e385c0bfdfe41d680eb5d9ce8ed5f4ba76a.tar.gz rust-04ab8e385c0bfdfe41d680eb5d9ce8ed5f4ba76a.zip | |
Rollup merge of #128772 - glaubitz:sparc-elf-fix, r=nagisa
rustc_codegen_ssa: Set architecture for object crate for 32-bit SPARC The `object` crate was recently updated to recognize the 32-bit SPARC ELF targets `EM_SPARC` and `EM_SPARC32PLUS`, so the proper architecture for 32-bit SPARC can now be set in `rustc_codegen_ssa`. r? nagisa
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/metadata.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/metadata.rs b/compiler/rustc_codegen_ssa/src/back/metadata.rs index 19394029c94..9b5a797ad51 100644 --- a/compiler/rustc_codegen_ssa/src/back/metadata.rs +++ b/compiler/rustc_codegen_ssa/src/back/metadata.rs @@ -208,6 +208,7 @@ pub(crate) fn create_object_file(sess: &Session) -> Option<write::Object<'static "powerpc64" => (Architecture::PowerPc64, None), "riscv32" => (Architecture::Riscv32, None), "riscv64" => (Architecture::Riscv64, None), + "sparc" => (Architecture::Sparc32Plus, None), "sparc64" => (Architecture::Sparc64, None), "avr" => (Architecture::Avr, None), "msp430" => (Architecture::Msp430, None), |
