From cbf83110669905319f87561849ad86d202edb373 Mon Sep 17 00:00:00 2001 From: Michael Fairley Date: Mon, 9 Jan 2017 15:29:18 -0600 Subject: [PATCH] Use arm toolchain for armv7 on Android --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6857860..0290bcf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -767,7 +767,7 @@ impl Config { format!("{}.exe", gnu) } } else if target.contains("android") { - format!("{}-{}", target, gnu) + format!("{}-{}", target.replace("armv7", "arm"), gnu) } else if self.get_host() != target { // CROSS_COMPILE is of the form: "arm-linux-gnueabi-" let cc_env = self.getenv("CROSS_COMPILE"); @@ -877,7 +877,7 @@ impl Config { .or_else(|| self.get_var("AR").map(PathBuf::from).ok()) .unwrap_or_else(|| { if self.get_target().contains("android") { - PathBuf::from(format!("{}-ar", self.get_target())) + PathBuf::from(format!("{}-ar", self.get_target().replace("armv7", "arm"))) } else if self.get_target().contains("emscripten") { PathBuf::from("emar") } else {