Browse Source

Pass -march=i686 for i686 Linux

See:

* rust-lang/rust#34650
* rust-lang/rust#34578
vs2017
Alex Crichton 9 years ago
parent
commit
a9795511e5
  1. 3
      src/lib.rs

3
src/lib.rs

@ -457,6 +457,9 @@ impl Config {
if target.starts_with("i586-unknown-linux-") {
cmd.args.push("-march=pentium".into());
}
if target.starts_with("i686-unknown-linux-") {
cmd.args.push("-march=i686".into());
}
}
if self.cpp && !msvc {

Loading…
Cancel
Save