• 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: Build All configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build All configuration


  • Subject: Re: Build All configuration
  • From: Greg Guerin <email@hidden>
  • Date: Sun, 19 Aug 2007 15:09:40 -0700

Chris Espinosa wrote:

>If you just want single-arch binaries, then I suggest you build
>Universal, ditto the built product, then use lipo to
>thin it. Much faster than compiling every file four times.

Or use ditto with the -arch <arch> option.  It can copy and thin in one step.

In fact, it seems like it would be simple to make targets that execute a
shell script with a single ditto command in them.  E.g. the "ppc-only'
target, which depends on the Universal target, might have a line like this:
  ditto -arch ppc path/to/universal-target path/to/ppc

and for an x86-only target:
  ditto -arch i386 path/to/universal-target path/to/i386

The man-page for ditto has more info.  Be careful with the pathnames, ditto
is NOT like 'cp' or 'mv'.

And once the single-arch builds are in their own target, then you can make
an aggregate target that builds them all.

  -- GG


 _______________________________________________
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

  • Prev by Date: Re: Xcode/gdb and Objective-C runtime errors/warnings
  • Next by Date: dyld: Library not loaded
  • Previous by thread: Re: Build All configuration
  • Next by thread: Xcode/gdb and Objective-C runtime errors/warnings
  • Index(es):
    • Date
    • Thread