[SOLVED] Recommended way to switch compiler version
[SOLVED] Recommended way to switch compiler version
- Subject: [SOLVED] Recommended way to switch compiler version
- From: Dieter Oberkofler <email@hidden>
- Date: Thu, 24 Sep 2009 22:42:23 +0200
xcodebuild only works with an Xcode project but not when compiling
from the command line or with a makefile.
./configure only works where configure is used.
make CC=... works well but needs to be set each time.
It seems as if manually changed all the links is the only way to go.
On 24.09.2009, at 17:30, Jean-Daniel Dupas wrote:
Le 24 sept. 2009 à 17:19, Jens Alfke a écrit :
On Sep 23, 2009, at 10:37 PM, Chris Espinosa wrote:
On Sep 23, 2009, at 9:04 PM, Dieter Oberkofler wrote:
Using Xcode 3.2 on Snow Leopard.
What is the recommended way to switch the compiler version to be
used from the command line from 4.2.1 to 4.0?
xcodebuild GCC_VERSION=4.0
What about cross-platform projects with makefiles that invoke gcc
or cc directly?
There used to be a gcc_select tool to persistently change which
compiler version was invoked, but it seems to be gone in 10.6.
It was already gone in 10.5 AFAIR.
Usually , the following line works.
./configure CC="gcc-4.0" CXX="g++-4.0"
works too with make:
make CC="gcc-4.0" CXX="g++-4.0"
Jean-Daniel
_______________________________________________
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
_______________________________________________
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