Skip to content

Commit 26cdfb7

Browse files
authored
Probe for ARM64 MSBuild (#605)
Set MSBuild Platform property to ARM64 for aarch64 targets
1 parent 1f50999 commit 26cdfb7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/windows_registry.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ mod impl_ {
277277
if target.contains("x86_64") {
278278
tool.env.push(("Platform".into(), "X64".into()));
279279
}
280+
if target.contains("aarch64") {
281+
tool.env.push(("Platform".into(), "ARM64".into()));
282+
}
280283
Some(tool)
281284
})
282285
.next()
@@ -407,6 +410,9 @@ mod impl_ {
407410
if target.contains("x86_64") {
408411
tool.env.push(("Platform".into(), "X64".into()));
409412
}
413+
if target.contains("aarch64") {
414+
tool.env.push(("Platform".into(), "ARM64".into()));
415+
}
410416
tool
411417
})
412418
}
@@ -810,10 +816,12 @@ mod impl_ {
810816
"16.0" => {
811817
find_msbuild_vs16("x86_64-pc-windows-msvc").is_some()
812818
|| find_msbuild_vs16("i686-pc-windows-msvc").is_some()
819+
|| find_msbuild_vs16("aarch64-pc-windows-msvc").is_some()
813820
}
814821
"15.0" => {
815822
find_msbuild_vs15("x86_64-pc-windows-msvc").is_some()
816823
|| find_msbuild_vs15("i686-pc-windows-msvc").is_some()
824+
|| find_msbuild_vs15("aarch64-pc-windows-msvc").is_some()
817825
}
818826
"12.0" | "14.0" => LOCAL_MACHINE
819827
.open(&OsString::from(format!(

0 commit comments

Comments
 (0)