From 5ada3872eb3d183825c781497d2c71bc01360805 Mon Sep 17 00:00:00 2001 From: Chandler Deng Date: Mon, 13 May 2019 15:07:24 -0700 Subject: [PATCH 1/2] add support for thumbv7a-pc-windows-msvc --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 8441680..eedbeea 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -734,7 +734,7 @@ impl Config { ), Err(msg) => panic!(msg), }; - if target.contains("i686") || target.contains("x86_64") { + if target.contains("i686") || target.contains("x86_64") || target.contains("thumbv7a") { base.to_string() } else { panic!("unsupported msvc target: {}", target); From e555da97fd3874d1e485f552ba037e60ad0ed546 Mon Sep 17 00:00:00 2001 From: Chandler Deng Date: Mon, 13 May 2019 15:35:51 -0700 Subject: [PATCH 2/2] support thumbv7a when building args for MSVC --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index eedbeea..645079a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -417,6 +417,9 @@ impl Config { if target.contains("x86_64") { cmd.arg("-Thost=x64"); cmd.arg("-Ax64"); + } else if target.contains("thumbv7a") { + cmd.arg("-Thost=x64"); + cmd.arg("-Aarm"); } else if target.contains("i686") { use cc::windows_registry::{find_vs_version, VsVers}; match find_vs_version() {