[compiler-rt] r243604 - [CMake] Pass -march=i686 when targeting i686 (PR24222)

Hans Wennborg hans at chromium.org
Wed Jul 29 19:05:28 PDT 2015


Merged to 3.7 in r243608.

On Wed, Jul 29, 2015 at 6:45 PM, Hans Wennborg <hans at hanshq.net> wrote:
> Author: hans
> Date: Wed Jul 29 20:45:17 2015
> New Revision: 243604
>
> URL: http://llvm.org/viewvc/llvm-project?rev=243604&view=rev
> Log:
> [CMake] Pass -march=i686 when targeting i686 (PR24222)
>
> Clang will not define __i686__, even when the target triple is i686,
> without -march=i686.
>
> With this patch, the compiler-rt build will successfully detect that
> Clang can target i686.
>
> The open_memstream.cc test is a little funny. Before my patch, it
> was invoked with "-m32 -m64". To make it work after my -march
> change, I had to add '-march=x86-64'.
>
> Differential Revision: http://reviews.llvm.org/D11618



More information about the llvm-commits mailing list