• 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
"Modules" and #defines in prefix headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Modules" and #defines in prefix headers


  • Subject: "Modules" and #defines in prefix headers
  • From: Sean McBride <email@hidden>
  • Date: Wed, 08 Jul 2015 17:43:44 -0400
  • Organization: Rogue Research Inc.

Hi all,

I recently set CLANG_ENABLE_MODULES = YES in my project and was surprised to discover a couple of days later that my release builds now have assertions enabled! :(

I have Debug and Release prefix headers where I set up certain #defines (and also include common headers like Foundation.h).  In my Release prefix header, I #define NDEBUG.

It seems that after flipping CLANG_ENABLE_MODULES = YES, this gets ignored/lost.  My prefix header is still being compiled, because if I introduce garbage text I get a compiler error.  Yet my #define NDEBUG seems to not have any effect...

I'm trying to understand why this would be, and what the correct thing to do instead is... is one supposed to use GCC_PREPROCESSOR_DEFINITIONS?

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



 _______________________________________________
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 and Git - renaming classes by changing case.
  • Next by Date: Re: Xcode and Git - renaming classes by changing case.
  • Previous by thread: Re: Xcode and Git - renaming classes by changing case.
  • Next by thread: unsafe printing
  • Index(es):
    • Date
    • Thread