Re: identify build style during compile?
Re: identify build style during compile?
- Subject: Re: identify build style during compile?
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 10 Dec 2004 20:07:17 -0700
On Dec 10, 2004, at 12:57 PM, walterw wrote:
I have a Carbon application that I'm developing in XCode and I'd like
to add code that only gets compiled for a development build.
#ifndef DEPLOYMENT_BUILD
if (internal_state_passes_tests() == false)
Debugger(); // break into debugger
#endif
Anyone know how? I've looked at the docs and can't find out how...
Try adding "-DDEBUG" (without the quotes) to the OTHER_CFLAGS setting
in the Development build. Then DEBUG is defined when performing a
Development build. Of course, you can set this to whatever you want,
but the key is you have to pass the -D option with a definition to GCC.
Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request
_______________________________________________
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