Skip to content

Commit a979551

Browse files
committed
Pass -march=i686 for i686 Linux
See: * rust-lang/rust#34650 * rust-lang/rust#34578
1 parent f1ae927 commit a979551

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,9 @@ impl Config {
457457
if target.starts_with("i586-unknown-linux-") {
458458
cmd.args.push("-march=pentium".into());
459459
}
460+
if target.starts_with("i686-unknown-linux-") {
461+
cmd.args.push("-march=i686".into());
462+
}
460463
}
461464

462465
if self.cpp && !msvc {

0 commit comments

Comments
 (0)