[LLVMdev] switching to llvm-g++ as the host compiler

Bill Wendling isanbard at gmail.com
Tue Jul 7 15:11:49 PDT 2009


On Tue, Jul 7, 2009 at 11:50 AM, Devang Patel<devang.patel at gmail.com> wrote:
> On Mon, Jul 6, 2009 at 3:47 PM, Stuart Hastings<stuart at apple.com> wrote:
>
> ===================================================================
>> --- llvm-gcc.test/configure.in  (revision 74729)
>> +++ llvm-gcc.test/configure.in  (working copy)
>> @@ -993,10 +993,10 @@
>>    # APPLE LOCAL begin dynamic-no-pic
>>    i[[3456789]]86-*-darwin*)
>>      host_makefile_frag="config/mh-x86-darwin"
>> -    # gcc can default to x86_64 code generation, avoid that
>> +    # llvm-gcc can default to x86_64 code generation, avoid that
>>      if test "${build}" = "${host}"; then
>> -      CC="${CC-gcc} -m32"
>> -      CXX="${CXX-g++} -m32"
>> +      CC="${CC-llvm-gcc} -m32"
>> +      CXX="${CXX-llvm-g++} -m32"
>>      fi
>>      ;;
>>    # APPLE LOCAL end dynamic-no-pic
>>
>
> Stuart,
>
> Here we are making two independent LOCAL changes.
> 1. use llvm-gcc & llvm-g++, if available
> 2. Force -m32
>
> Pl. mention both changes explicitly in the comment.
>
Also, we should fall back to a default of "gcc" and "g++" if LLVM
isn't available.

-bw




More information about the llvm-dev mailing list