Re: How to set the GCC System Version? GCC_VERSION - gcc_select?
Re: How to set the GCC System Version? GCC_VERSION - gcc_select?
- Subject: Re: How to set the GCC System Version? GCC_VERSION - gcc_select?
- From: Chris Espinosa <email@hidden>
- Date: Fri, 4 Sep 2009 14:50:41 -0700
On Sep 4, 2009, at 11:33 AM, Dave Thorup wrote: On Sep 3, 2009, at 6:46 PM, Chris Espinosa wrote:
When an Xcode project does not specify a Compiler Version, the System Default comes from either the SDK in use, or if none is defined there, from following the symlink at /usr/bin/gcc. Changing that symlink is your best bet.
Well, the SDK in use is the 10.4 SDK. So is it a bug that Xcode is still using GCC 4.2 even though the 10.4 SDK is selected?
Not a bug in Xcode; as I said, it uses the default if the SDK doesn't define one. When the 10.4u SDK was built, we were unaware that a yet-unborn compiler would be incompatible with it, so it doesn't define a default compiler version. And we have not remastered the 10.4u SDK.
If you want to do it this way, you could edit /Developer/SDKs/MacOSX10.4u.sdk/SDKSettings.plist and add COMPILER_VERSION = 4.0 to the DefaultProperties dictionary, and that would make gcc 4.0 the default compiler for every project that specified that SDK. Oh, and really shouldn't Xcode automatically switch to GCC 4.0 if the MACOSX_DEPLOYMENT_TARGET is set to 10.4 or earlier (We have it set to 10.3)?
Xcode doesn't support development for 10.3 any longer.
Yeah, we're not targeting 10.3 but still have MACOSX_DEPLOYMENT_TARGET set to 10.3, I'll change that. Might that be causing Xcode to not select GCC 4.0 when we use the 10.4 SDK?
No, see the foregoing.
Chris
|
_______________________________________________
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