[llvm-commits] [PATCH] x86_64 detection and building on 10.6

Evan Phoenix evan at fallingsnow.net
Wed Sep 2 09:11:38 PDT 2009


On Aug 31, 2009, at 11:32 AM, Mike Stump wrote:

> On Aug 30, 2009, at 12:31 PM, Evan Phoenix wrote:
>> Currently, it's not possible to build LLVM and link it against  
>> something compiled by default on 10.6, since LLVM forces itself to  
>> build 32bit only, and 10.6 defaults to compile 64bit by default.
>
> Not quite right:
>
> $ gcc -arch ppc64 -E -dM -x c /dev/null -o - | grep LP64
> #define __LP64__ 1
> #define _LP64 1
>
> If you check uname -m and if it says i386, then this is safe to do.   
> I support the general idea however.

Ah! Right you are. Having never had access to a ppc64 machine, I had  
no idea. Attached fixes this, only using gcc test if uname -m has said  
*86.

Thanks!

  - Evan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-x86_64-sl2.diff
Type: application/octet-stream
Size: 831 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090902/abfa461a/attachment.obj>
-------------- next part --------------



More information about the llvm-commits mailing list