• 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: Specifying precompiler flags?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Specifying precompiler flags?


  • Subject: Re: Specifying precompiler flags?
  • From: Jonathan del Strother <email@hidden>
  • Date: Wed, 14 Dec 2005 15:29:11 +0000


On 14 Dec 2005, at 15:19, Jean-Francois Im wrote:

Jonathan del Strother wrote:
I currently have a bunch of code containing bits like :
#ifdef DEBUG
some non-release code
#endif
In a header file somewhere, there's a #define DEBUG command.
Is it possible to move this 'define' command into the target configuration, so the Debug build gets the DEBUG flag defined and the Release build doesn't? Or are there any other alternative ways of doing this?
Jon

Yes, in your build configuration, near the bottom, there is a setting for preprocessor macros. Also, you can use a prefix header if you want macros set to a particular value.


Jean-François Im


Ah. I did check there, but was searching for 'precompiler' rather than 'preprocessor' options.
Thanks for the help
Jon



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Re: Specifying precompiler flags? (From: Jean-Francois Im <email@hidden>)

  • Prev by Date: Re: Specifying precompiler flags?
  • Next by Date: Re: GCC 4 and iostream.h
  • Previous by thread: Re: Specifying precompiler flags?
  • Next by thread: Compiling simple C code filters to use AltiVec
  • Index(es):
    • Date
    • Thread