• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IDE version preproc constant?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >IDE version preproc constant? (From: Philip Lukidis <email@hidden>)

  • Prev by Date: Re: App won't launch
  • Next by Date: Re: Shark for Java - 'the target process has already exited'?
  • Previous by thread: IDE version preproc constant?
  • Next by thread: RE: IDE version preproc constant?
  • Index(es):
    • Date
    • Thread