there's a generic difference in the ast build

        _BLD_DEBUG <=> compiled with -g
        DEBUG => add debugging code whether or not compiled with -g

On Fri, 30 Apr 2010 21:23:18 +0530 Siddhesh Poyarekar wrote:
> On Fri, Apr 30, 2010 at 1:00 AM, Glenn Fowler <[email protected]> wrote:
> >
> > aha
> > then a single line patch that wraps the show definition with this should do
> >        #if DEBUG || _BLD_DEBUG
> > thanks
> >
> > I didn't see this because I mostly build with nmake and the default
> > rules throw on -D_BLD_DEBUG when CCFLAGS has -g

> How about fixing it in debug.h itself, such that defining either of
> DEBUG or _BLD_DEBUG results in definition of the other, somthing on
> the lines of this:

> --- a/src/lib/libast/include/debug.h  2009-02-05 01:50:25.000000000 +0530
> +++ b/src/lib/libast/include/debug.h  2010-04-30 21:21:11.000000000 +0530
> @@ -33,6 +33,8 @@

>  #if !defined(DEBUG) && _BLD_DEBUG
>  #define DEBUG                _BLD_DEBUG
> +#elif defined(DEBUG)
> +#define _BLD_DEBUG   DEBUG
>  #endif

>  #if DEBUG || _BLD_DEBUG

_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to