From db00007839151d8ec7b00256945bf245dbe8a0e7 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 6 Apr 2006 22:59:35 +0000 Subject: [PATCH] Fix vg_perf to work with older Valgrind versions. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5833 --- perf/vg_perf.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/perf/vg_perf.in b/perf/vg_perf.in index 53ed6ff5e1..c85ad0d59c 100644 --- a/perf/vg_perf.in +++ b/perf/vg_perf.in @@ -301,9 +301,12 @@ sub do_one_test($$) die "unknown tool $tool, please add to %toolnames\n"; # Do the tool run(s). Set both VALGRIND_LIB and VALGRIND_LIB_INNER - # in case this Valgrind was configured with --enable-inner. + # in case this Valgrind was configured with --enable-inner. And + # also VALGRINDLIB, which was the old name for the variable, to + # allow comparison against old Valgrind versions (eg. 2.4.X). printf(" %s:", $toolnames{$tool}); - my $vgsetup = "VALGRIND_LIB=$vgdir/.in_place " + my $vgsetup = "VALGRINDLIB=$vgdir/.in_place " + . "VALGRIND_LIB=$vgdir/.in_place " . "VALGRIND_LIB_INNER=$vgdir/.in_place "; my $vgcmd = "$vgdir/coregrind/valgrind " . "--command-line-only=yes --tool=$tool -q " -- 2.47.2