On Tue, May 21, 2013 at 11:51 AM, <
charlie....@gmail.com> wrote:
> Thanks Arie :)
>
>
> On Tuesday, May 21, 2013 9:12:43 AM UTC-6, Arie Gurfinkel wrote:
>>
>> (replying through the group)
>>
>> Hey Charlie, thanks for the build script!
>>
>> First, a comment and a question:
>> 1. You can use git version of LDD library from SF. It is more current
>> than the tar distro. For me, it compiles out of the box on Ubuntu 12.04,
>> 13.04 and OSX Mountain Lion. Let me know if it does not for you and I'll
>> update the repo.
>
>
> Good to know, I'll do that.
>
>>
>>
>> 2. Have you tried using llvm-gcc to compile llvm-2.6? It is annoying to
>> have to install so many versions of gcc. I am able to compile it with
>> gcc-4.6 on Ubuntu 12.04 and llvm-gcc-4.2 on OSX.
>
>
> I point to llvm-gcc when I configure the build for llvm 2.6, but it still
> seemed to use gcc/g++ for at least part of the build. I'll confirm that, it
> might be an error in the build script.
llvm-2.6 needs to know where llvm-gcc is for its compilation process.
However, this does not affect the compiler that configure picks to
compile llvm itself. To change the compiler you have to set CC and CXX
variables (as you do in the script). I am suggesting to set them to
llvm-gcc. So it will look like:
<PATH_TO_LLVM>/configure CC=llvm-gcc CXX=llvm-g++ <REST OF CONFIG OPTIONS>
assuming that some version of llvm-gcc is in the path (otherwise give
full paths to the tools above).
cheers,
arie
> --
> You received this message because you are subscribed to the Google Groups
> "UFO General Discussion Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ufo-discuss...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>