• 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: Turn off precompiled header for one file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turn off precompiled header for one file?


  • Subject: Re: Turn off precompiled header for one file?
  • From: Uli Kusterer <email@hidden>
  • Date: Wed, 19 Jan 2011 15:17:32 +0100

Am Jan 14, 2011 um 11:39 PM schrieb John Weeks:
> On Jan 14, 2011, at 2:10 PM, Christiaan Hofman wrote:
>> A precompiled header is for a target, not a file, so the answer as such is no. What you could do though is make use of something like "#ifdef __OBJC__" or "#ifdef __cplusplus" in the precompile header, so that it's doing different things for C++ files.
>
> Yup. That's pretty much what I thought, but decided it couldn't hurt to ask.
>
> Thanks for taking the time, Christiaan.

 Does GCC have an option to turn off the PCH for a file? There's this honkin' huge text field for additional compiler options in the info window for each file, if there was one, you could specify it there. Did that for a bunch of ("cross-platform" .c files that were actually C++ to turn on the C++ compiler with the -x option).

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."



 _______________________________________________
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: Turn off precompiled header for one file?
      • From: Christiaan Hofman <email@hidden>
References: 
 >Turn off precompiled header for one file? (From: John Weeks <email@hidden>)
 >Re: Turn off precompiled header for one file? (From: Christiaan Hofman <email@hidden>)
 >Re: Turn off precompiled header for one file? (From: John Weeks <email@hidden>)

  • Prev by Date: Re: App Crashes When Built with Xcode 3.2.5
  • Next by Date: Re: Turn off precompiled header for one file?
  • Previous by thread: Re: Turn off precompiled header for one file?
  • Next by thread: Re: Turn off precompiled header for one file?
  • Index(es):
    • Date
    • Thread