• 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: Switching compilers in Xcode 3.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching compilers in Xcode 3.0


  • Subject: Re: Switching compilers in Xcode 3.0
  • From: Chris Espinosa <email@hidden>
  • Date: Mon, 5 Nov 2007 13:16:38 -0800


On Nov 5, 2007, at 12:07 PM, Justin C. Walker wrote:

On Nov 5, 2007, at 11:33 , Rick Ballard wrote:

On Nov 5, 2007, at 11:07 AM, Justin C. Walker wrote:
On Nov 5, 2007, at 10:18 , Rick Ballard wrote:

Xcode no longer ships with a gcc_select tool. To switch compilers, you'll need to double-click on the target whose compiler you want to change, go to the "Rules" tab, and select the compiler you'd like to use.

The only problem now is that my Terminal window doesn't have a "Rules" tab. What do those of us with a history of GUI rejection do?

That depends on what you're doing that uses gcc, as it sounds like you're not building via an Xcode project? You should be able to directly invoke /usr/bin/gcc-3.3 instead of <Developer>/usr/bin/gcc.

I have three typical uses: hacking (whipping up small chunks of C [my editor is either 'cat' or 'ed' :-}]); open source "projects" that have all their quirks built-in (usually 'autoconf' nightmares); and the odd Xcode project, for when I'm feeling energetic and my OCD takes over.


Mostly, I just want to say "cc" and go :-}, switching when I'm building for older PowerPCs (which I still use) or when I'm looking for bugs.

The old (gcc_select) script appears to work on 10.5. I haven't looked at it in depth, but given its length, I'm surprised that just saying "/usr/bin/gcc-3.3" will suffice. Is there less to that than it appears?

Thanks for your help!

It will probably work, so far as it goes, but you have to be careful to use -isysroot to the 10.4u or 10.3 SDK as well, and you will also link with ld64 instead of ld_classic, which may have subtle gotchas.


The big problem is that everything that assumes that the default compiler is gcc 4.0 will choke badly if the default compiler is gcc 3.3, so it's your risk to take.

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


References: 
 >Switching compilers in Xcode 3.0 (From: "Justin C. Walker" <email@hidden>)
 >Re: Switching compilers in Xcode 3.0 (From: Rick Ballard <email@hidden>)
 >Re: Switching compilers in Xcode 3.0 (From: "Justin C. Walker" <email@hidden>)
 >Re: Switching compilers in Xcode 3.0 (From: Rick Ballard <email@hidden>)
 >Re: Switching compilers in Xcode 3.0 (From: "Justin C. Walker" <email@hidden>)

  • Prev by Date: Problems using SCM with Xcode
  • Next by Date: Re: Problems using SCM with Xcode
  • Previous by thread: Re: Switching compilers in Xcode 3.0
  • Next by thread: Re: Switching compilers in Xcode 3.0
  • Index(es):
    • Date
    • Thread