Re: Using llvm with Xcode
Re: Using llvm with Xcode
- Subject: Re: Using llvm with Xcode
- From: Devang Patel <email@hidden>
- Date: Fri, 24 Aug 2007 09:23:01 -0700
On Aug 24, 2007, at 5:55 AM, Jesper Papmehl-Dufay wrote:
I'm trying to get Xcode to compile C(++) sources using llvm
(www.llvm.org) instead of using gcc, and I'm having some trouble.
I've set up a custom build rule to use a small shell script that
I've written that calls the llvm version of gcc.
By looking at various files in /System/Library/PrivateFrameworks/
DevToolsCore.framework/Versions/A/Resources, I have managed to make
my script send most of the command line options I need to llvm, but
I'm still having trouble with precompiled headers and header maps,
among other things.
Has anyone successfully used llvm with Xcode? Or has anyone used
some other gcc-like compiler with Xcode using a custom build rule?
Can you share any hints? :)
I have not tried using a custom build rule.
In general, build settings CC=../llvm-gcc and CPLUSPLUS=.../llvm-g++
can be used for llvm-gcc (and other gcc-like compilers). llvm-gcc is
like gcc-4.0 in this regard.
-
Devang
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden