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

Re: Recommended way to switch compiler version


  • Subject: Re: Recommended way to switch compiler version
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Thu, 24 Sep 2009 17:30:31 +0200


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
  • Follow-Ups:
    • [SOLVED] Recommended way to switch compiler version
      • From: Dieter Oberkofler <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>)

  • Prev by Date: Re: Recommended way to switch compiler version
  • Next by Date: Re: Xcode 2.5: debugger does not not run
  • Previous by thread: Re: Recommended way to switch compiler version
  • Next by thread: [SOLVED] Recommended way to switch compiler version
  • Index(es):
    • Date
    • Thread