Re: gcc march,mtune with universal build?
Re: gcc march,mtune with universal build?
- Subject: Re: gcc march,mtune with universal build?
- From: Keith Duncan <email@hidden>
- Date: Wed, 21 Jan 2009 17:47:34 +0000
Mario,
You don't say if you're using Xcode but assuming you are - you can add
a build condition to the flags that need a per-architecture setting.
If you open the target inspector window and click the action button on
the lower left, the menu should contain a 'Add Build Setting
Condition' item (I'm not sure which version the appeared in but I'm
fairly sure it only present in version 3.0) which should do what
you're asking; tune an individual setting for each architecture.
I hope that's helpful.
Keith
On 21 Jan 2009, at 15:52, Mario Emmenlauer wrote:
Hi all,
can I tune gcc performance parameters when I make a
universal build? gcc complains that
CXXFLAGS="-arch ppc -arch i386"
is not compatible with
CXXFLAGS="-msse3 -mtune=nocona -march=nocona"
which in turn can not be combined with
CXXFLAGS="-maltivec -mtune=G5 -mcpu=G5"
Do I have to build for all targets individually and
build the fat binary with lipo?
Best,
Mario
XCode 3.1.2
gcc version 4.0.1 (Apple Inc. build 5490)
Darwin drpepper.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24
17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev 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.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden