• 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
How do I include source files according to processor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I include source files according to processor?


  • Subject: How do I include source files according to processor?
  • From: Doug McLean <email@hidden>
  • Date: Mon, 30 Oct 2006 18:19:16 -0600

Hi experts. Suppose I am building a universal binary target. In the PPC build, I want machPatchesPPC.cpp included in the build, while for intel, I want machPatchesx86.cpp (a processor-specific implementation of the same functions).

I know I can bracket each file with a processor-specific conditional, but prefer not to. Is there a cleaner way to bind a file to the compilation for a specific processor? Maybe some kind of per-file compiler flag?

Thanks very much for your help.

Doug

_______________________________________________
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 do I include source files according to processor?
      • From: Steve Checkoway <email@hidden>
  • Prev by Date: Re: Project file turns into folder
  • Next by Date: Re: A little off topic ...
  • Previous by thread: Curses and function keys [Was: Mac fkeys]
  • Next by thread: Re: How do I include source files according to processor?
  • Index(es):
    • Date
    • Thread