Re: How to use gcc-4.3 (or 4.4) in Xcode?
Re: How to use gcc-4.3 (or 4.4) in Xcode?
- Subject: Re: How to use gcc-4.3 (or 4.4) in Xcode?
- From: Chris Espinosa <email@hidden>
- Date: Tue, 15 Sep 2009 09:05:08 -0700
On Sep 15, 2009, at 8:11 AM, Ludovic Rousseau <email@hidden
> wrote:
2009/9/15 Jean-Daniel Dupas <email@hidden>:
talking about FAQ, did you saw the list rules which start by:
First things first: It's Xcode, not xCode or XCode or x-code.
Remember that
now.
Chris loses an eye each time he reads a message like this ;-)
Oops, sorry. Updated the mail subject.
Now, to come back to your question, you can add a CC "user defined
build
setting" to the build setting list.
Despite the setting name, CC is used for both C and C++ files.
You have to specify an absolute path IIRC.
Great. It does work.
The problem now is that my g++ does not understand Apple "extensions"
to the compiler. My locally recompiled compiler does not understand
the -arch argument.
I see two options:
- tell Xcode to not pass this argument. Is it possible?
- write a wrapper that removes this argument from the command line
before calling the real compiler
The best way to use a non-Apple tool in the Xcode build chain is to
create an External Build System target and write a makefile that
invokes your tool the way you want it. Then your Xcode targets can
link to the static or dynamic library built by the makefile. You have
all the regular Xcode build settings at your disposal in the makefile,
but you're responsible for assembling the compiler invocation yourself.
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