• 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: How to build some files for some destinations/architecture only?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to build some files for some destinations/architecture only?


  • Subject: Re: How to build some files for some destinations/architecture only?
  • From: Fritz Anderson <email@hidden>
  • Date: Fri, 23 Sep 2011 10:09:41 -0500

On 23 Sep 2011, at 9:57 AM, Jean-Denis MUYS wrote:

> Yes I know about handling that at the C compiler level. But:
>
> 1- It's ugly to have to handle build issues at the source-level
> 2- This sounds like a C-solution only. Unless the C-preprocessor is run on .s files too? I would hate being limited to inline assembly.

Untried: Possibly you could have a separate library target for each architecture that builds a static library from your architecture-specific code, and in the build settings for the principal target add (for instance) -larmassembly as a arch-conditional setting for Other Linker Flags for the ARM architecture, -li86assembly for 32-bit Intel, and so on.

You're never going to have a solution that isn't ugly. The core concept of targets is that they embody invariant sets of source files.

	— F

 _______________________________________________
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: How to build some files for some destinations/architecture only?
      • From: Jean-Denis MUYS <email@hidden>
References: 
 >Re: How to build some files for some destinations/architecture only? (From: Steve Mills <email@hidden>)
 >Re: How to build some files for some destinations/architecture only? (From: Jean-Denis MUYS <email@hidden>)

  • Prev by Date: Re: Build Universal 32/64 bit with XCode 3.2.6->no 64 bit
  • Next by Date: Re: How to build some files for some destinations/architecture only?
  • Previous by thread: Re: How to build some files for some destinations/architecture only?
  • Next by thread: Re: How to build some files for some destinations/architecture only?
  • Index(es):
    • Date
    • Thread