Commit 7d6a5543 authored by Christian Dietrich's avatar Christian Dietrich
Browse files

experiments/lib: call reconfigure on every new commit

Some build systems need a reconfigure. However, we do not want to
measure that, since it is single threaded and way too slow.
parent 49fffe49
......@@ -73,8 +73,7 @@ class HistoricalCompilation(Experiment, ClangHashHelper):
for commit in commits:
shell("cd %s; git reset --hard %s", src_path, commit[0])
info = {"commit": commit[0], "summary": commit[1]}
if self.project_name() == "lua":
self.call_configure(src_path)
self.call_reconfigure(src_path)
self.rebuild(src_path, info, fail_ok=True)
self.build_info["builds"].append(info)
if not info.get("failed"):
......
......@@ -68,6 +68,12 @@ class ClangHashHelper:
else:
raise RuntimeError("Not a valid project")
def call_reconfigure(self, path):
if self.project_name() in ('lua',):
self.call_configure(path)
if self.project_name() in ('cpython',):
shell("cd %s/build; make config.status", path)
def call_make(self, path):
if self.project_name() in ("mbedtls", "cpython"):
return shell("cd %s/build; make -j %s", path, str(self.jobs.value))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment