]> git.lizzy.rs Git - rust.git/commit
mk: Request -march=i686 on i686 Linux
authorAlex Crichton <alex@alexcrichton.com>
Thu, 30 Jun 2016 17:25:46 +0000 (10:25 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 30 Jun 2016 17:25:46 +0000 (10:25 -0700)
commitab06acedd650d25fcdecf1ee08bb4eb2837669bd
tree6198b24a993dcf42886e3b9cb9c17626fbd91a05
parentc2b56fb7a0c24e04227318ca7e5950e9289ee3e4
mk: Request -march=i686 on i686 Linux

Apparently the gcc on our dist bot is so old and/or obscure that the default
`-m32` switch doesn't think it can generate i686 code (or something like that).
The compiler-rt build system probes for the `__i686__` define in GCC to compile
for an i686 (vs i386) target, so this was failing on the bots.

This tweaks instead to pass `-march=i686` on i686-unknown-linux-gnu to C code to
ensure that we're compiling for i686 instead of i386. This should hopefully not
actually have an impact other than maybe doing some random optimization it
wasn't able to do so before. In theory this isn't making the target less
compatible as all Rust code is already compiled for i686.

Hopefully closes #34572
mk/cfg/i686-unknown-linux-gnu.mk