Re: gcc march,mtune with universal build?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Mario, 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 _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/keith_dev%40mac.com This email sent to keith_dev@mac.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Keith Duncan