You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2006/10/16 02:45:55 UTC

svn commit: r464340 - /lucene/lucy/trunk/Build.PL

Author: marvin
Date: Sun Oct 15 17:45:55 2006
New Revision: 464340

URL: http://svn.apache.org/viewvc?view=rev&rev=464340
Log:
Change debug option to use an environment variable rather than a hard-coded
variable.  Add a debugging option which runs ./charmonize under valgrind.

Modified:
    lucene/lucy/trunk/Build.PL

Modified: lucene/lucy/trunk/Build.PL
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/Build.PL?view=diff&rev=464340&r1=464339&r2=464340
==============================================================================
--- lucene/lucy/trunk/Build.PL (original)
+++ lucene/lucy/trunk/Build.PL Sun Oct 15 17:45:55 2006
@@ -21,8 +21,9 @@
 my $CHARMONIZE_EXE_PATH    = 'charmonize';
 my $CHARMONIZER_SOURCE_DIR = catdir(qw( charmonizer src ));
 
-my $DEBUG         = 0;
-my $EXTRA_CCFLAGS = $DEBUG ? " -ansi -pedantic -Wall -Wextra -std=c89 " : "";
+my $EXTRA_CCFLAGS
+    = $ENV{DEBUG_CHARM} ? " -ansi -pedantic -Wall -Wextra -std=c89 " : "";
+my $VALGRIND = $ENV{CHARM_VALGRIND} ? "valgrind " : "";
 
 # Compile the metaquote source filter utility.
 sub ACTION_metaquote {
@@ -160,7 +161,7 @@
     |;
     close $infile_fh or die "Can't close '$lucyconf_in': $!";
 
-    system("./$CHARMONIZE_EXE_PATH $lucyconf_in");
+    system("$VALGRIND ./$CHARMONIZE_EXE_PATH $lucyconf_in");
 
     unlink($lucyconf_in) or die "Can't unlink '$lucyconf_in': $!";