• 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
[SOLVED] Recommended way to switch compiler version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


  • Follow-Ups:
    • Re: [SOLVED] Recommended way to switch compiler version
      • From: Jeremy Pereira <email@hidden>
References: 
 >Recommended way to switch compiler version (From: Dieter Oberkofler <email@hidden>)
 >Re: Recommended way to switch compiler version (From: Chris Espinosa <email@hidden>)
 >Re: Recommended way to switch compiler version (From: Jens Alfke <email@hidden>)
 >Re: Recommended way to switch compiler version (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Predicates in Interface Builder
  • Next by Date: Re: "No such file or directory"
  • Previous by thread: Re: Recommended way to switch compiler version
  • Next by thread: Re: [SOLVED] Recommended way to switch compiler version
  • Index(es):
    • Date
    • Thread