Re: Skipping a target based on host architecture
Re: Skipping a target based on host architecture
- Subject: Re: Skipping a target based on host architecture
- From: Chris Espinosa <email@hidden>
- Date: Wed, 14 Nov 2007 16:02:21 -0800
On Nov 14, 2007, at 12:32 PM, Andrew Kimpton wrote:
I have a target in one of my sub-projects which is only built for
i386 (it's just not appropriate on ppc machines) I do this by
setting all the config. variants (Debug/Release etc.) to use i386 as
the only architecture choice ('DEFAULT_ARCH' doesn't appear).
In general the debug config build's only for 'native arch' so when
the top level project triggers a dependent build of this project
it's attempting to link the debug i386 code against libraries which
only contain debug ppc code. This of course fails.
Is there a way to simple 'skip' this target ? I don't want to have
to build the dependent libraries both ways in a debug config. If I
can avoid it since they're pretty large and it seems wasteful on a
developers machine to build stuff that's not used. Per-architecture
build settings seem like they should help (though an Xcode 2.x
solution to this would be great!) however there doesn't seem to be a
per-architecture 'don't bother' setting.
Any suggestions ?
There isn't a wholesale way to skip a dependent target in a build.
You may have to make two aggregate targets, one for fat and one for
i386-only.
The other way is to build a nonfunctional stub library to use on the
PPC side, so that the link will succeed even though running the code
would fail.
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