@@ -58,7 +58,7 @@ def __init__(self, name, cc, cxx):
58
58
59
59
def build (self , parent , filename , args , shared_args , emcc_args , native_args , native_exec , lib_builder ):
60
60
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 })
62
62
if not native_exec :
63
63
compiler = self .cxx if filename .endswith ('cpp' ) else self .cc
64
64
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={}):
90
90
91
91
def build (self , parent , filename , args , shared_args , emcc_args , native_args , native_exec , lib_builder ):
92
92
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 = {})
94
94
95
95
open ('hardcode.py' , 'w' ).write ('''
96
96
def process(filename):
0 commit comments