• 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
not-used-in-precomps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

not-used-in-precomps


  • Subject: not-used-in-precomps
  • From: Fritz Anderson <email@hidden>
  • Date: Sun, 12 Jun 2005 16:33:55 -0500

About the new (2.1) build setting GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS...

Am I misconceiving the use of this setting? I had thought that two targets could share a precompiled header, and then one could add a preprocessor definition using this setting, and the change would be "downstream" from the reading of the PCH. So Target A and Target B could both use TargetA.pch, and Target B could additionally specify as ...NOT_USED_IN_PRECOMPS, say, DEBUG=1, and not spoil the precompilation

If I try this (and as the compiler suggested, turn on -Winvalid-pch), I get:

========
cc1obj: warning: /Library/Caches/com.apple.Xcode.503/ SharedPrecompiledHeaders/Linear_Prefix-apkchnlmwdltyrczcnulutdqxqdh/ Linear_Prefix.pch.gch: not used because `DEBUG' is defined
cc1obj: error: /Library/Caches/com.apple.Xcode.503/ SharedPrecompiledHeaders/Linear_Prefix-apkchnlmwdltyrczcnulutdqxqdh/ Linear_Prefix.pch: No such file or directory
cc1obj: error: one or more PCH files were found, but they were invalid
========


... which seems to be saying that the presence of a not-in-precomps symbol, so far from permitting the sharing of PCHes, actually prevents it.

Am I missing something, or should I report a bug?

    -- 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: not-used-in-precomps
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Interface Builder hangs on launch
  • Next by Date: Re: Debug Problems
  • Previous by thread: Interface Builder hangs on launch
  • Next by thread: Re: not-used-in-precomps
  • Index(es):
    • Date
    • Thread