]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix vg_perf to work with older Valgrind versions.
authorNicholas Nethercote <njn@valgrind.org>
Thu, 6 Apr 2006 22:59:35 +0000 (22:59 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Thu, 6 Apr 2006 22:59:35 +0000 (22:59 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5833

perf/vg_perf.in

index 53ed6ff5e154a6fd98e4f73084ef26be92b8f2ef..c85ad0d59c08ec2ccc8db95f7239c4e6d1beb931 100644 (file)
@@ -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 "