File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ tools" and "Windows 10 SDK" option. No additional software installation is
16
16
necessary for basic use of the GNU build.
17
17
18
18
By default ` rustup ` on Windows configures Rust to target the MSVC ABI, that is
19
- a target triple of either ` i686-pc-windows-msvc ` or ` x86_64 -pc-windows-msvc`
19
+ a target triple of either ` i686-pc-windows-msvc ` , ` x86_64-pc-windows-msvc ` , or ` aarch64 -pc-windows-msvc`
20
20
depending on the CPU architecture of the host Windows OS. The toolchains that
21
21
` rustup ` chooses to install, unless told otherwise through the [ toolchain
22
22
specification] , will be compiled to run on that target triple host and will
Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ impl TargetTriple {
234
234
// First detect architecture
235
235
const PROCESSOR_ARCHITECTURE_AMD64 : u16 = 9 ;
236
236
const PROCESSOR_ARCHITECTURE_INTEL : u16 = 0 ;
237
+ const PROCESSOR_ARCHITECTURE_ARM64 : u16 = 12 ;
237
238
238
239
let mut sys_info;
239
240
unsafe {
@@ -244,6 +245,7 @@ impl TargetTriple {
244
245
let arch = match unsafe { sys_info. u . s ( ) } . wProcessorArchitecture {
245
246
PROCESSOR_ARCHITECTURE_AMD64 => "x86_64" ,
246
247
PROCESSOR_ARCHITECTURE_INTEL => "i686" ,
248
+ PROCESSOR_ARCHITECTURE_ARM64 => "aarch64" ,
247
249
_ => return None ,
248
250
} ;
249
251
You can’t perform that action at this time.
0 commit comments