Skip to content

Commit

Permalink
Probe for ARM64 MSBuild (#605)
Browse files Browse the repository at this point in the history
Set MSBuild Platform property to ARM64 for aarch64 targets
  • Loading branch information
Alovchin91 committed Jun 1, 2021
1 parent 1f50999 commit 26cdfb7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/windows_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ mod impl_ {
if target.contains("x86_64") {
tool.env.push(("Platform".into(), "X64".into()));
}
if target.contains("aarch64") {
tool.env.push(("Platform".into(), "ARM64".into()));
}
Some(tool)
})
.next()
Expand Down Expand Up @@ -407,6 +410,9 @@ mod impl_ {
if target.contains("x86_64") {
tool.env.push(("Platform".into(), "X64".into()));
}
if target.contains("aarch64") {
tool.env.push(("Platform".into(), "ARM64".into()));
}
tool
})
}
Expand Down Expand Up @@ -810,10 +816,12 @@ mod impl_ {
"16.0" => {
find_msbuild_vs16("x86_64-pc-windows-msvc").is_some()
|| find_msbuild_vs16("i686-pc-windows-msvc").is_some()
|| find_msbuild_vs16("aarch64-pc-windows-msvc").is_some()
}
"15.0" => {
find_msbuild_vs15("x86_64-pc-windows-msvc").is_some()
|| find_msbuild_vs15("i686-pc-windows-msvc").is_some()
|| find_msbuild_vs15("aarch64-pc-windows-msvc").is_some()
}
"12.0" | "14.0" => LOCAL_MACHINE
.open(&OsString::from(format!(
Expand Down

0 comments on commit 26cdfb7

Please sign in to comment.