Re: Using llvm with Xcode
Re: Using llvm with Xcode
- Subject: Re: Using llvm with Xcode
- From: Jesper Papmehl-Dufay <email@hidden>
- Date: Fri, 24 Aug 2007 19:04:25 +0200
Thanks for the quick reply!
Yes, that's much easier! :) I wasn't aware of the CC/CPLUSPLUS.
Unfortunately, I now run into other problems. I'm sorry if this is
maybe getting a bit off-topic; hopefully, I'm not the only Xcode user
interested in using llvm.
When precompiling my prefix file, I get a few errors about some
system headers that cannot be found.
For example, my prefix file includes stdarg.h, and that file in
itself can be found, but it contains the following line:
#include_next <stdarg.h>
and llvm cannot found _that_ copy of stdarg.h.
I have the same problem with float.h (which is included by a header
in the Carbon framework which I include).
Is there some way to make llvm to behave more like gcc when it comes
to finding system header files?
Thanks!
/Jesper
24 aug 2007 kl. 18.23 skrev Devang Patel:
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