From d1d055a1bf149b0e971dcc3290a2ccfc346217ee Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 29 Mar 2017 01:52:28 -0700 Subject: Fix building --- tools/profiling/microbenchmarks/bm_diff.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/profiling/microbenchmarks/bm_diff.py b/tools/profiling/microbenchmarks/bm_diff.py index ffbdfeb77f..7281bd77e7 100755 --- a/tools/profiling/microbenchmarks/bm_diff.py +++ b/tools/profiling/microbenchmarks/bm_diff.py @@ -95,15 +95,19 @@ def avg(lst): n += 1 return sum / n -def build(): - subprocess.check_call(['git', 'submodule', 'update']) +def make_cmd(cfg): make = ['make'] + args.benchmarks + [ 'CONFIG=%s' % cfg, '-j', '%d' % multiprocessing.cpu_count()] + +def build(): + subprocess.check_call(['git', 'submodule', 'update']) try: - subprocess.check_call(make) + subprocess.check_call(make_cmd('opt')) + subprocess.check_call(make_cmd('counters')) except subprocess.CalledProcessError, e: subprocess.check_call(['make', 'clean']) - subprocess.check_call(make) + subprocess.check_call(make_cmd('opt')) + subprocess.check_call(make_cmd('counters')) def collect1(bm, cfg, ver): cmd = ['bins/%s/%s' % (cfg, bm), -- cgit v1.2.3