Checking Xcode version programatically
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