unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Ken Raeburn <raeburn@raeburn.org>
To: guile-devel <guile-devel@gnu.org>
Subject: SCM_DEBUG and developer builds
Date: Sat, 5 Sep 2009 19:49:48 -0400	[thread overview]
Message-ID: <BA6491B1-941E-4649-8D5F-01A576888990@raeburn.org> (raw)

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




                 reply	other threads:[~2009-09-05 23:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BA6491B1-941E-4649-8D5F-01A576888990@raeburn.org \
    --to=raeburn@raeburn.org \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).