• 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: Skipping a target based on host architecture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Skipping a target based on host architecture (From: Andrew Kimpton <email@hidden>)

  • Prev by Date: Re: Making larger Icons for Leopard
  • Next by Date: Re: Newbie Q: SenTestCase linking problem
  • Previous by thread: Skipping a target based on host architecture
  • Next by thread: Making larger Icons for Leopard
  • Index(es):
    • Date
    • Thread