Skip to content

Commit 0529968

Browse files
committed
fix benchmark suite bug where args got appended
1 parent c9b22f4 commit 0529968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_benchmark.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(self, name, cc, cxx):
5858

5959
def build(self, parent, filename, args, shared_args, emcc_args, native_args, native_exec, lib_builder):
6060
self.parent = parent
61-
if lib_builder: native_args += lib_builder(self.name, native=True, env_init={ 'CC': self.cc, 'CXX': self.cxx })
61+
if lib_builder: native_args = native_args + lib_builder(self.name, native=True, env_init={ 'CC': self.cc, 'CXX': self.cxx })
6262
if not native_exec:
6363
compiler = self.cxx if filename.endswith('cpp') else self.cc
6464
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 @@ def __init__(self, name, engine, extra_args=[], env={}):
9090

9191
def build(self, parent, filename, args, shared_args, emcc_args, native_args, native_exec, lib_builder):
9292
self.filename = filename
93-
if lib_builder: emcc_args += lib_builder('js', native=False, env_init={})
93+
if lib_builder: emcc_args = emcc_args + lib_builder('js', native=False, env_init={})
9494

9595
open('hardcode.py', 'w').write('''
9696
def process(filename):

0 commit comments

Comments
 (0)