Skip to content

Commit 388bf17

Browse files
Support aarch64-pc-windows-gnu (#645)
1 parent 795a12d commit 388bf17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,8 @@ impl Build {
15651565
cmd.args.push("--target=x86_64-unknown-windows-gnu".into());
15661566
} else if target.contains("i686") {
15671567
cmd.args.push("--target=i686-unknown-windows-gnu".into())
1568+
} else if target.contains("aarch64") {
1569+
cmd.args.push("--target=aarch64-unknown-windows-gnu".into())
15681570
}
15691571
} else {
15701572
cmd.args.push(format!("--target={}", target).into());
@@ -2506,6 +2508,8 @@ impl Build {
25062508
.as_ref()
25072509
.map(|s| s.trim_right_matches('-').to_owned());
25082510
cross_compile.or(match &target[..] {
2511+
"aarch64-pc-windows-gnu" => Some("aarch64-w64-mingw32"),
2512+
"aarch64-uwp-windows-gnu" => Some("aarch64-w64-mingw32"),
25092513
"aarch64-unknown-linux-gnu" => Some("aarch64-linux-gnu"),
25102514
"aarch64-unknown-linux-musl" => Some("aarch64-linux-musl"),
25112515
"aarch64-unknown-netbsd" => Some("aarch64--netbsd"),

0 commit comments

Comments
 (0)