Browse Source

use armv6s-m instead of armv6-m

This allows use of the SVC instruction
and matches what rustc gets from LLVM
with thumbv6m.
vs2017
James Duley 8 years ago
parent
commit
bbc420623c
  1. 2
      src/lib.rs

2
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());

Loading…
Cancel
Save