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

Devang Patel
2009-07-07T18:50:23Z

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.
-
Devang