• 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
Checking Xcode version programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Checking Xcode version programatically


  • Subject: Checking Xcode version programatically
  • From: "Mills, Steve" <email@hidden>
  • Date: Mon, 17 Oct 2011 16:01:43 -0500
  • Acceptlanguage: en-US
  • Thread-topic: Checking Xcode version programatically

Since Xcode 4.2 did away with the plain GCC 4.2 compiler, I'd like to programmatically be able to set the compiler based on the version of Xcode being used. We have this setting in one of our cross-project .xcconfig files:

GCC_VERSION = 4.2

This, of course, doesn't work in Xcode 4.2. So I need some sort of Xcode version symbol to #if against and set it to com.apple.compilers.llvmgcc42 if we're running Xcode 4.2. Is there such a macro/value/thingy?

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157

 _______________________________________________
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

  • Prev by Date: Re: Apple ID works on iTunes, App Store - won't work on Apple
  • Next by Date: Clang failing on Xcode 4.2 supplied commandline options…
  • Previous by thread: Re: Apple ID works on iTunes, App Store - won't work on Apple
  • Next by thread: Clang failing on Xcode 4.2 supplied commandline options…
  • Index(es):
    • Date
    • Thread