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 protected]
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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to