Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 1998 17:36:34 +0100
From:      Eivind Eklund <eivind@yes.no>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        eivind@yes.no, wollman@khavrinen.lcs.mit.edu, cvs-committers@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/conf options src/sys/gnu/ext2fs ext2_alloc.c ext2_balloc.c ext2_inode.c ext2_lookup.c ext2_subr.c ext2_vnops.c src/sys/i386/i386 busdma_machdep.c machdep.c pmap.c swtch.s trap.c vm86.c vm_machdep.c src/sys/i386/ibcs2 ibcs2_sysi86.
Message-ID:  <19980205173634.06208@follo.net>
In-Reply-To: <199802050954.UAA31717@godzilla.zeta.org.au>; from Bruce Evans on Thu, Feb 05, 1998 at 08:54:38PM %2B1100
References:  <199802050954.UAA31717@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 05, 1998 at 08:54:38PM +1100, Bruce Evans wrote:
> >>[DIAGNOSTIC]
> 
> >Well, the way I've always used it was to turn it on for just those
> >specific modules I was debugging.  That keeps the code perturbation
> 
> That should still work, since if DIAGNOSTIC is not configured, then
> opt_diagnostic.h will not define DIAGNOSTIC, so you can still use
> `make COPTFLAGS=-DDIAGNOSTIC'.  `make COPTFLAGS=-DDIAGNOSTIC=0' won't
> work to turn off DIAGNOSTIC if it is configured, but it is already
> broken, since COPTFLAGS and COPTS are almost perfectly misplaced at
> the beginning and near the end of CFLAGS respectively, so COPTFLAGS
> can't be used to override COPTS.
> 
> Similarly for DEBUG.

So I can throw DEBUG in opt_global.h (or potentially opt_debug.h, but
I think DEBUGs scope change too often for that to be useful)?  Then
we'll have no old-style options as default - yi-ha! :-)

Eivind.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980205173634.06208>