unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* SCM_DEBUG and developer builds
@ 2009-09-05 23:49 Ken Raeburn
  0 siblings, 0 replies; only message in thread
From: Ken Raeburn @ 2009-09-05 23:49 UTC (permalink / raw)
  To: guile-devel

I have a suggestion: Let's set SCM_DEBUG=1 by default for the 1.9.x  
series.

Clearly, it should be easy to disable, for doing performance testing  
builds or whatever.  But having it on by default makes it more likely  
that we'll catch some kinds of errors sooner.

There are a couple of obvious approaches:

#1: Modify the default setting in __scm.h.

The only issue I'm concerned about is a library built with - 
DSCM_DEBUG=0 would still install headers that default to setting  
SCM_DEBUG to 1, thus causing application code to reference symbols  
like scm_error_pair_access that might not have been compiled in to the  
library.  I'm willing to try to go through and make such symbols  
always be available, though obviously it means increasing the code  
size of the installed non-debugging library with debugging code.

#2: Add a configure option for setting SCM_DEBUG, instead of setting  
CPPFLAGS.  Have it operate by defining SCM_DEBUG in the guile  
makefiles, leaving __scm.h (including the installed copy) setting a  
default of 0.

This will avoid inflicting SCM_DEBUG=1 checks on developers using the  
developer releases... so, that may or may not be desirable....

Thoughts?

Ken




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-05 23:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-05 23:49 SCM_DEBUG and developer builds Ken Raeburn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).