RE: IDE version preproc constant?
RE: IDE version preproc constant?
- Subject: RE: IDE version preproc constant?
- From: Philip Lukidis <email@hidden>
- Date: Fri, 9 Sep 2005 14:08:16 -0400
Thanks, I'll look for this symbol, but since I have an easy alternate
solution, I won't sweat if I don't find it.
Philip Lukidis
-----Original Message-----
From: Fritz Anderson [mailto:email@hidden]
Sent: Friday, September 09, 2005 12:31 PM
To: Philip Lukidis
Cc: email@hidden
Subject: Re: IDE version preproc constant?
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