Skip to content

Commit

Permalink
Pass -march=i686 for i686 Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jul 15, 2016
1 parent f1ae927 commit a979551
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a979551

Please sign in to comment.