Re: IDE version preproc constant?
Re: IDE version preproc constant?
- Subject: Re: IDE version preproc constant?
- From: Fritz Anderson <email@hidden>
- Date: Fri, 9 Sep 2005 11:31:26 -0500
On 9 Sep 2005, at 9:41 AM, Philip Lukidis wrote:
Hi. Since I need to maintain a project in XCode 1.5 and XCode 2.1,
it would
help me to know if there is a preprocessor defined constant for
the IDE
version, so I can distinguish between IDEs. I know I can define
one myself
because the project files are different, but I was curious if one such
constant already exists. I searched the archives, but I could not
find an
answer.
gcc is a separate entity from the Xcode IDE, so any preprocessor
symbol would be visible in the command lines in the build log. There
is no such symbol that I've seen.
You can inventory the environment variables by inserting a Shell
Script phase consisting of the "env" command and inspecting its
output in the build transcript. As far as I remember, the IDE version
doesn't make it into the environment, either.
-- F
_______________________________________________
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