"Modules" and #defines in prefix headers
"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