about summary refs log tree commit diff
path: root/benchtests
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@systemhalted.org>2016-01-13 11:00:57 -0500
committerCarlos O'Donell <carlos@systemhalted.org>2016-01-13 11:00:57 -0500
commit67fc563718f00c690b5be579f7282ee60d7db749 (patch)
tree9d71cb7eec391336fc184424de95c4b8fbfb5073 /benchtests
parente42ce0f45ebf20b4c6f89da605cd62b1cd60a9df (diff)
downloadglibc-67fc563718f00c690b5be579f7282ee60d7db749.tar.gz
glibc-67fc563718f00c690b5be579f7282ee60d7db749.tar.xz
glibc-67fc563718f00c690b5be579f7282ee60d7db749.zip
Use $(PYTHON) to run benchtests python files.
Diffstat (limited to 'benchtests')
-rw-r--r--benchtests/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile
index 674d313b34..2b553f8355 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -15,10 +15,11 @@
 # License along with the GNU C Library; if not, see
 # <http://www.gnu.org/licenses/>.
 
-
 # Makefile for benchmark tests.  The only useful target here is `bench`.
 # Add benchmark functions in alphabetical order.
 
+PYTHON := python
+
 subdir := benchtests
 
 include ../Makeconfig
@@ -164,7 +165,7 @@ bench-func: $(binaries-bench)
 	  mv -f $(objpfx)bench.out $(objpfx)bench.out.old; \
 	fi; \
 	mv -f $(objpfx)bench.out-tmp $(objpfx)bench.out
-	scripts/validate_benchout.py $(objpfx)bench.out \
+	$(PYTHON) scripts/validate_benchout.py $(objpfx)bench.out \
 		scripts/benchout.schema.json
 
 $(timing-type) $(binaries-bench) $(binaries-benchset) \
@@ -177,5 +178,5 @@ $(objpfx)bench-%.c: %-inputs $(bench-deps)
 	{ if [ -n "$($*-INCLUDE)" ]; then \
 	  cat $($*-INCLUDE); \
 	fi; \
-	scripts/bench.py $(patsubst %-inputs,%,$<); } > $@-tmp
+	$(PYTHON) scripts/bench.py $(patsubst %-inputs,%,$<); } > $@-tmp
 	mv -f $@-tmp $@