How to set the GCC System Version? GCC_VERSION - gcc_select?
How to set the GCC System Version? GCC_VERSION - gcc_select?
- Subject: How to set the GCC System Version? GCC_VERSION - gcc_select?
- From: Dave Thorup <email@hidden>
- Date: Thu, 3 Sep 2009 16:03:23 -0500
Now that Snow Leopard has switched the system default GCC version to 4.2 I'm wondering if there's any way to switch it back, globally, to 4.0? In previous Mac OS X versions there was a gcc_select script that would do the trick but I think that's been removed since Leopard (10.5). So is there any replacement for it? Is there any way to easily change the default GCC version?
The issue I'm having is that we use Qt ( http://qt.nokia.com/) for application development and so our Xcode projects are generated via qmake. Whenever we add/remove a file to our project we do it to the Qt project file and then rebuild the Xcode project. We can't just set the GCC version once and forget about it because our Xcode projects are regenerated fairly often. The problem is that there's no way that I know of using qmake to set the GCC_VERSION for the generated Xcode project. So I have to set it manually to 4.0 every time I regenerate the Xcode project (this gets annoying very quickly).
So my options are to either figure out how to globally set the system GCC version to 4.0 or figure out how to hack qmake to set the GCC_VERSION to 4.0 whenever it generates an Xcode project. Are there any other Qt developers out there that have run into this problem? Does anyone have a good solution?
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)?
Thanks! -- Dave Thorup Software Engineer
|
_______________________________________________
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