From: Paul Floyd Date: Wed, 22 Mar 2023 19:43:30 +0000 (+0100) Subject: Make cg_annotate independent of python3 install location X-Git-Tag: VALGRIND_3_21_0~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb35cd572f7f805eb55160ad13e5bf8f1c174499;p=thirdparty%2Fvalgrind.git Make cg_annotate independent of python3 install location --- diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in index 247026f1fa..91d75aecdf 100755 --- a/cachegrind/cg_annotate.in +++ b/cachegrind/cg_annotate.in @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # pyright: strict # -------------------------------------------------------------------- diff --git a/cachegrind/tests/ann1.vgtest b/cachegrind/tests/ann1.vgtest index e3e574276a..660f524f09 100644 --- a/cachegrind/tests/ann1.vgtest +++ b/cachegrind/tests/ann1.vgtest @@ -2,5 +2,5 @@ # the post-processing of the cgout-test file. prog: ../../tests/true vgopts: --cachegrind-out-file=cachegrind.out -post: touch cgout-test && perl ../../cachegrind/cg_annotate --show=Ir,I1mr,ILmr --show-percs=no cgout-test +post: touch cgout-test && python3 ../../cachegrind/cg_annotate --show=Ir,I1mr,ILmr --show-percs=no cgout-test cleanup: rm cachegrind.out diff --git a/cachegrind/tests/ann2.vgtest b/cachegrind/tests/ann2.vgtest index 7cf1b7fcd3..9ef76e38e9 100644 --- a/cachegrind/tests/ann2.vgtest +++ b/cachegrind/tests/ann2.vgtest @@ -2,5 +2,5 @@ # the post-processing of the cgout-test file. prog: ../../tests/true vgopts: --cachegrind-out-file=cachegrind.out -post: touch cgout-test && perl ../../cachegrind/cg_annotate --sort=Dr --show=Dw,Dr,Ir --auto=no cgout-test a.c +post: touch cgout-test && python3 ../../cachegrind/cg_annotate --sort=Dr --show=Dw,Dr,Ir --auto=no cgout-test a.c cleanup: rm cachegrind.out