From 7a1bfc2a9aa13ac3bf497730f0180c9611165bab Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 24 Feb 2016 23:57:32 -0800 Subject: [PATCH] Force arm-*-*-gnueabihf targets to armv6 See rust-lang/rust#31800 --- src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 17e582d..90d7805 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -447,6 +447,14 @@ impl Config { if target == "armv7-unknown-linux-gnueabihf" { cmd.args.push("-march=armv7-a".into()); } + if target == "arm-unknown-linux-gnueabihf" { + cmd.args.push("-march=armv6".into()); + cmd.args.push("-marm".into()); + } + if target == "arm-unknown-linux-gnueabi" { + cmd.args.push("-march=armv6".into()); + cmd.args.push("-marm".into()); + } } if self.cpp && !msvc {