• 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
Re: identify build style during compile?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: identify build style during compile?
      • From: Fritz Anderson <email@hidden>
References: 
 >identify build style during compile? (From: walterw <email@hidden>)

  • Prev by Date: Re: Xcode-users Digest, Vol 1, Issue 115
  • Next by Date: Re: identify build style during compile?
  • Previous by thread: Re: identify build style during compile?
  • Next by thread: Re: identify build style during compile?
  • Index(es):
    • Date
    • Thread