Re: iPhone Platform Compiler Symbol?
Re: iPhone Platform Compiler Symbol?
- Subject: Re: iPhone Platform Compiler Symbol?
- From: Peter O'Gorman <email@hidden>
- Date: Thu, 14 May 2009 20:38:58 -0500
Philip Aker wrote:
> # gcc -dM -E -x c /dev/null > gccdefs.txt
>
> and
>
> # cpp -dM < /dev/null > cppdefs.txt
>
> Show no difference in the output files.
> I think cpp is currently a call through to gcc so theoretically they
> should always produce the same set of defines given equivalent options.
>
> True or false?
At the risk of really annoying Chris...
/usr/bin/cpp is a shell script that does indeed end up calling
/usr/bin/gcc -E -x c, the differences are, cpp does not take -arch flags
(well, it happily takes the -arch flag, but thinks the argument is a
file), and does not do languages other than c, and, in this case, does
not call a completely different cross-compiler.
Anyway, Availability.h really is the right answer.
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
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