• 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: predefined DEFINE for Debug or Release build?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: predefined DEFINE for Debug or Release build?


  • Subject: Re: predefined DEFINE for Debug or Release build?
  • From: email@hidden
  • Date: Tue, 6 May 2008 13:04:24 -0400

I couldn't find defines for Release vs. Debug build.

Log from xcodebuild doesn't say anything special on both build.
That's why I asked question here.





             "R.L. Grigg"
             <email@hidden>
             Sent by:                                                                                                To
             xcode-users-bounces+woojung.huh=sms         Xcode Users <email@hidden>
             email@hidden                                                                                   cc

                                                                                                                Subject
             05/06/2008 12:41 PM                         Re: predefined DEFINE for Debug or Release build?










On May 6, 2008, at 7:34 AM, Jean-Daniel Dupas wrote:
>
> Le 6 mai 08 à 16:05, email@hidden a écrit :
>>
>> Hi,
>>
>> Does Xcode 3.0 have pre-defined C define to check Release build or
>> Debug build?
>>
>> If not, how can I add my define on Xcode configuration?
>> I tried on Xcode configruation menu, but it can be has C define
>> like -DMY_DEFINE=1.
>>
>> I'm building Kext module using XCode 3.0
>>
>> Thanks in advance,
>> Woojung
>
> What you want is a preprocessor macro.
>
> Open the target build settings (or the projet build setting if you
> want projet wide settings) by double clicking the corresponding item
> (the target or the projet item)
> Choose the "build" tab to show all build settings.
> Choose the "configuration" you want to update (release, debug, ...).
>
> And then search for "Preprocessor Macros" in the build settings list.
>
> If you want something like -DMY_DEFINE=1, just enter MY_DEFINE=1
> (without the -D)

With respect to the broader question, does Xcode 3.0 set its own
define when doing a debug build vs a release build? I would like my
code to key off the intrinsic Xcode build type automatically without
setting a define. Looking at the build log it appears it doesnt.

Russ

 _______________________________________________
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


 _______________________________________________
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: predefined DEFINE for Debug or Release build? (From: "R.L. Grigg" <email@hidden>)

  • Prev by Date: Re: predefined DEFINE for Debug or Release build?
  • Next by Date: Re: predefined DEFINE for Debug or Release build?
  • Previous by thread: Re: predefined DEFINE for Debug or Release build?
  • Next by thread: Re: predefined DEFINE for Debug or Release build?
  • Index(es):
    • Date
    • Thread