From 130765de719a3ddc475284e13749d09ff371a8e1 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 1 Feb 2019 16:35:20 +0100 Subject: rework build system #1 each benchmark has its own Makefile which must put it's binaries into OBJDIR which is added to the PATH during execution. --- src/benchmark.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/benchmark.py') diff --git a/src/benchmark.py b/src/benchmark.py index 4de05e3..e4dbef2 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -81,6 +81,7 @@ class Benchmark (object): self.results[target] = d def prepare(self, verbose=False): + os.environ["PATH"] += ":build/" + self.name def is_exe(fpath): return os.path.isfile(fpath) and os.access(fpath, os.X_OK) @@ -256,6 +257,7 @@ class Benchmark (object): if self.posttarget_hook((tname, t), run, verbose): return False print() + os.environ["PATH"] = os.environ["PATH"].replace(":build/"+self.name, "") return True def plot_single_arg(self, yval, ylabel="'y-label'", xlabel="'x-label'", autoticks=True, -- cgit v1.2.3