925925 # dlmalloc
926926 def create_dlmalloc ():
927927 if DEBUG : print >> sys .stderr , 'emcc: building dlmalloc for cache'
928- execute (shared .ENV_PREFIX + [ 'python2' , shared .EMCC , shared .path_from_root ('system' , 'lib' , 'dlmalloc.c' ), '-g' , '-o' , in_temp ('dlmalloc.o' )], stdout = stdout , stderr = stderr )
928+ execute ([ shared .PYTHON , shared .EMCC , shared .path_from_root ('system' , 'lib' , 'dlmalloc.c' ), '-g' , '-o' , in_temp ('dlmalloc.o' )], stdout = stdout , stderr = stderr )
929929 # we include the libc++ new stuff here, so that the common case of using just new/delete is quick to link
930- execute (shared .ENV_PREFIX + [ 'python2' , shared .EMXX , shared .path_from_root ('system' , 'lib' , 'libcxx' , 'new.cpp' ), '-g' , '-o' , in_temp ('new.o' )], stdout = stdout , stderr = stderr )
930+ execute ([ shared .PYTHON , shared .EMXX , shared .path_from_root ('system' , 'lib' , 'libcxx' , 'new.cpp' ), '-g' , '-o' , in_temp ('new.o' )], stdout = stdout , stderr = stderr )
931931 shared .Building .link ([in_temp ('dlmalloc.o' ), in_temp ('new.o' )], in_temp ('dlmalloc_full.o' ))
932932 return in_temp ('dlmalloc_full.o' )
933933 def fix_dlmalloc ():
950950 os = []
951951 for src in ['algorithm.cpp' , 'condition_variable.cpp' , 'future.cpp' , 'iostream.cpp' , 'memory.cpp' , 'random.cpp' , 'stdexcept.cpp' , 'system_error.cpp' , 'utility.cpp' , 'bind.cpp' , 'debug.cpp' , 'hash.cpp' , 'mutex.cpp' , 'string.cpp' , 'thread.cpp' , 'valarray.cpp' , 'chrono.cpp' , 'exception.cpp' , 'ios.cpp' , 'locale.cpp' , 'regex.cpp' , 'strstream.cpp' , 'typeinfo.cpp' ]:
952952 o = in_temp (src + '.o' )
953- execute (shared .ENV_PREFIX + [ 'python2' , shared .EMXX , shared .path_from_root ('system' , 'lib' , 'libcxx' , src ), '-o' , o ], stdout = stdout , stderr = stderr )
953+ execute ([ shared .PYTHON , shared .EMXX , shared .path_from_root ('system' , 'lib' , 'libcxx' , src ), '-o' , o ], stdout = stdout , stderr = stderr )
954954 os .append (o )
955955 shared .Building .link (os , in_temp ('libcxx.bc' ))
956956 return in_temp ('libcxx.bc' )
969969 os = []
970970 for src in ['private_typeinfo.cpp' ]:
971971 o = in_temp (src + '.o' )
972- execute (shared .ENV_PREFIX + [ 'python2' , shared .EMXX , shared .path_from_root ('system' , 'lib' , 'libcxxabi' , 'src' , src ), '-o' , o ], stdout = stdout , stderr = stderr )
972+ execute ([ shared .PYTHON , shared .EMXX , shared .path_from_root ('system' , 'lib' , 'libcxxabi' , 'src' , src ), '-o' , o ], stdout = stdout , stderr = stderr )
973973 os .append (o )
974974 shared .Building .link (os , in_temp ('libcxxabi.bc' ))
975975 return in_temp ('libcxxabi.bc' )
@@ -1075,7 +1075,7 @@ try:
10751075
10761076 if AUTODEBUG :
10771077 if DEBUG : print >> sys .stderr , 'emcc: autodebug'
1078- execute (shared .ENV_PREFIX + [ 'python2' , shared .AUTODEBUGGER , final , final + '.ad.ll' ])
1078+ execute ([ shared .PYTHON , shared .AUTODEBUGGER , final , final + '.ad.ll' ])
10791079 final += '.ad.ll'
10801080 if DEBUG : save_intermediate ('autodebug' , 'll' )
10811081
@@ -1098,7 +1098,7 @@ try:
10981098 file_args += embed_files
10991099 if Compression .on :
11001100 file_args += ['--compress' , Compression .encoder , Compression .decoder , Compression .js_name ]
1101- code = execute (shared .ENV_PREFIX + [ 'python2' , shared .FILE_PACKAGER , unsuffixed (target ) + '.data' ] + file_args , stdout = PIPE )[0 ]
1101+ code = execute ([ shared .PYTHON , shared .FILE_PACKAGER , unsuffixed (target ) + '.data' ] + file_args , stdout = PIPE )[0 ]
11021102 src = open (final ).read ().replace ('// {{PRE_RUN_ADDITIONS}}' , '// {{PRE_RUN_ADDITIONS}}\n ' + code )
11031103 final += '.files.js'
11041104 open (final , 'w' ).write (src )
0 commit comments