Skip to content

Commit

Permalink
Support Aarch64_Ilp32 architectire for mac, as used by arm64_32-apple…
Browse files Browse the repository at this point in the history
…-watchos compile target.

Rust issue: rust-lang/rust#111217
  • Loading branch information
vladimir-ea committed May 5, 2023
1 parent 214eecb commit 57ed593
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/write/macho.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ impl<'a> Object<'a> {
let (cputype, cpusubtype) = match self.architecture {
Architecture::Arm => (macho::CPU_TYPE_ARM, macho::CPU_SUBTYPE_ARM_ALL),
Architecture::Aarch64 => (macho::CPU_TYPE_ARM64, macho::CPU_SUBTYPE_ARM64_ALL),
Architecture::Aarch64_Ilp32 => (macho::CPU_TYPE_ARM64_32, macho::CPU_SUBTYPE_ARM64_32_V8),
Architecture::I386 => (macho::CPU_TYPE_X86, macho::CPU_SUBTYPE_I386_ALL),
Architecture::X86_64 => (macho::CPU_TYPE_X86_64, macho::CPU_SUBTYPE_X86_64_ALL),
Architecture::PowerPc => (macho::CPU_TYPE_POWERPC, macho::CPU_SUBTYPE_POWERPC_ALL),
Expand Down

0 comments on commit 57ed593

Please sign in to comment.