• 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: file.asm for PPC not Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file.asm for PPC not Intel


  • Subject: Re: file.asm for PPC not Intel
  • From: Eric Albert <email@hidden>
  • Date: Wed, 1 Mar 2006 09:08:32 -0800

On Mar 1, 2006, at 8:43 AM, Steve Sisak wrote:

At 11:02 PM -0800 2/28/06, Eric Albert wrote:
On Feb 28, 2006, at 9:49 PM, Ken Turkowski wrote:

There's no way to do that in Xcode today.  Instead, add
	#if __ppc__
to the start of the file and the corresponding
	#endif
to the end.

I have the same need but with a .a file for which I do not have the source.


Needs to be included in PPC build but not Intel -- eventually there will be a different .a for Intel.

That's a separate issue from Ken's because, as you noted, it's an object file. For that, the best solution today is to use per-architecture linker flags. Set OTHER_LDFLAGS_ppc to be '-llibraryname' instead of adding the .a to your project.


Once you have the two .a's, you could use lipo to combine them into one universal library and add that to your project as you would add any other library.

Hope this helps,
Eric

_______________________________________________
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


  • Follow-Ups:
    • Re: file.asm for PPC not Intel
      • From: Steve Baxter <email@hidden>
References: 
 >Re: file.asm for PPC not Intel (From: Steve Sisak <email@hidden>)

  • Prev by Date: Re: breaking into debugger from assert
  • Next by Date: Re: file.asm for PPC not Intel
  • Previous by thread: Re: file.asm for PPC not Intel
  • Next by thread: Re: file.asm for PPC not Intel
  • Index(es):
    • Date
    • Thread