diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-03 16:32:15 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-03 16:34:25 -0800 |
commit | 05299686d45df2b5ee273c464dbf6d4b49d58fb5 (patch) | |
tree | f7fd1e55ed71ecdfde6933f4ce08d6db3ebadb7f | |
parent | c9b22f467094404a062112c9b93199f59e6e93c7 (diff) |
fix benchmark suite bug where args got appended
-rw-r--r-- | tests/test_benchmark.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_benchmark.py b/tests/test_benchmark.py index d84f36e4..625340ea 100644 --- a/tests/test_benchmark.py +++ b/tests/test_benchmark.py @@ -58,7 +58,7 @@ class NativeBenchmarker(Benchmarker): def build(self, parent, filename, args, shared_args, emcc_args, native_args, native_exec, lib_builder): self.parent = parent - if lib_builder: native_args += lib_builder(self.name, native=True, env_init={ 'CC': self.cc, 'CXX': self.cxx }) + if lib_builder: native_args = native_args + lib_builder(self.name, native=True, env_init={ 'CC': self.cc, 'CXX': self.cxx }) if not native_exec: compiler = self.cxx if filename.endswith('cpp') else self.cc process = Popen([compiler, '-O2', '-fno-math-errno', filename, '-o', filename+'.native'] + shared_args + native_args, stdout=PIPE, stderr=parent.stderr_redirect) @@ -90,7 +90,7 @@ class JSBenchmarker(Benchmarker): def build(self, parent, filename, args, shared_args, emcc_args, native_args, native_exec, lib_builder): self.filename = filename - if lib_builder: emcc_args += lib_builder('js', native=False, env_init={}) + if lib_builder: emcc_args = emcc_args + lib_builder('js', native=False, env_init={}) open('hardcode.py', 'w').write(''' def process(filename): |