diff options
author | Craig Tiller <ctiller@google.com> | 2017-03-29 01:52:28 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-03-29 01:52:28 -0700 |
commit | d1d055a1bf149b0e971dcc3290a2ccfc346217ee (patch) | |
tree | 113ee9de308bb607bfe7f3665e960c5d3060feb1 | |
parent | ba32fee3fc2e054ef87148d9027fc08c8c8c37c1 (diff) |
Fix building
-rwxr-xr-x | tools/profiling/microbenchmarks/bm_diff.py | 12 |
1 files changed, 8 insertions, 4 deletions
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), |