File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,9 @@ mod impl_ {
375375 let host = match host_arch ( ) {
376376 X86 => "X86" ,
377377 X86_64 => "X64" ,
378+ // There is no natively hosted compiler on ARM64.
379+ // Instead, use the x86 toolchain under emulation (there is no x64 emulation).
380+ AARCH64 => "X86" ,
378381 _ => return None ,
379382 } ;
380383 let target = lib_subdir ( target) ?;
@@ -607,8 +610,10 @@ mod impl_ {
607610
608611 const PROCESSOR_ARCHITECTURE_INTEL : u16 = 0 ;
609612 const PROCESSOR_ARCHITECTURE_AMD64 : u16 = 9 ;
613+ const PROCESSOR_ARCHITECTURE_ARM64 : u16 = 12 ;
610614 const X86 : u16 = PROCESSOR_ARCHITECTURE_INTEL ;
611615 const X86_64 : u16 = PROCESSOR_ARCHITECTURE_AMD64 ;
616+ const AARCH64 : u16 = PROCESSOR_ARCHITECTURE_ARM64 ;
612617
613618 // When choosing the tool to use, we have to choose the one which matches
614619 // the target architecture. Otherwise we end up in situations where someone
You can’t perform that action at this time.
0 commit comments