From bbc420623c4e80597d44f769b5cf881607aa7031 Mon Sep 17 00:00:00 2001 From: James Duley Date: Mon, 28 Nov 2016 22:17:21 +0000 Subject: [PATCH] use armv6s-m instead of armv6-m This allows use of the SVC instruction and matches what rustc gets from LLVM with thumbv6m. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a444b36..7f7b358 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -515,7 +515,7 @@ impl Config { } } if target.starts_with("thumbv6m") { - cmd.args.push("-march=armv6-m".into()); + cmd.args.push("-march=armv6s-m".into()); } if target.starts_with("thumbv7em") { cmd.args.push("-march=armv7e-m".into());