[cfe-dev] Compiling obj-c samples with clang

Jean-Daniel Dupas devlists at shadowlab.org
Mon Dec 8 00:49:31 PST 2008


Le 8 déc. 08 à 07:07, John Kelley a écrit :

> Is there a walkthrough or can someone provide me with instructions on
> how to compile the Mac OS developer samples with clang via xcodebuild?
> CC=ccc xcodebuild doesn't seem to work, at least not for the Sketch
> sample that people seem to be using as an example on the clang  
> website.
>
> Thanks,
> John

clang/ccc does not support precompiled header.

And then, depending your PATH settings, Xcode may not know where ccc  
is. So I'm doing this to lanch the compilation:

xcodebuild CC=`which ccc` GCC_PRECOMPILE_PREFIX_HEADER=NO






More information about the cfe-dev mailing list