lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r464340 - /lucene/lucy/trunk/Build.PL
Date Mon, 16 Oct 2006 00:45:55 GMT
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': $!";
 



Mime
View raw message