diff options
author | hobbs <hobbs> | 2006-08-30 17:58:24 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2006-08-30 17:58:24 (GMT) |
commit | b4794ceec1c0099fa2ee86c5fcdc6cf757954366 (patch) | |
tree | aa313cbb511ea6ffc20bfac8675b1a560f698313 /unix | |
parent | 282d474e4fd62a6e28d0bccd79f46df52f37ef15 (diff) | |
download | tcl-b4794ceec1c0099fa2ee86c5fcdc6cf757954366.zip tcl-b4794ceec1c0099fa2ee86c5fcdc6cf757954366.tar.gz tcl-b4794ceec1c0099fa2ee86c5fcdc6cf757954366.tar.bz2 |
* unix/Makefile.in (valgrindshell): add valgrindshell target and
update default VALGRINDARGS. User can override, or add to it with
VALGRIND_OPTS env var.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/Makefile.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in index 1b6bcbf..98f5fd6 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -5,7 +5,7 @@ # "autoconf" program (constructs like "@foo@" will get replaced in the # actual Makefile. # -# RCS: @(#) $Id: Makefile.in,v 1.186 2006/03/10 14:50:17 dgp Exp $ +# RCS: @(#) $Id: Makefile.in,v 1.187 2006/08/30 17:58:24 hobbs Exp $ VERSION = @TCL_VERSION@ MAJOR_VERSION = @TCL_MAJOR_VERSION@ @@ -641,10 +641,17 @@ ddd: tclsh $(DDD) -command=gdb.run ./tclsh rm gdb.run +VALGRINDARGS=--tool=memcheck --num-callers=8 --leak-resolution=high --leak-check=yes --show-reachable=yes -v + valgrind: tclsh tcltest @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \ TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \ - valgrind --num-callers=8 --leak-resolution=high -v --leak-check=yes --show-reachable=yes $(VALGRINDARGS) ./tcltest $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS) + valgrind $(VALGRINDARGS) ./tcltest $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS) + +valgrindshell: tclsh + @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \ + TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \ + valgrind $(VALGRINDARGS) ./tclsh $(SCRIPT) # The following target outputs the name of the top-level source directory # for Tcl (it is used by Tk's configure script, for example). The |