@@ -1144,9 +1144,34 @@ try:
1144
1144
def create_libcxx ():
1145
1145
if DEBUG : print >> sys .stderr , 'emcc: building libcxx for cache'
1146
1146
os = []
1147
- 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' ]:
1147
+ libcxx_files = [
1148
+ 'algorithm.cpp' ,
1149
+ 'condition_variable.cpp' ,
1150
+ 'future.cpp' ,
1151
+ 'iostream.cpp' ,
1152
+ 'memory.cpp' ,
1153
+ 'random.cpp' ,
1154
+ 'stdexcept.cpp' ,
1155
+ 'system_error.cpp' ,
1156
+ 'utility.cpp' ,
1157
+ 'bind.cpp' ,
1158
+ 'debug.cpp' ,
1159
+ 'hash.cpp' ,
1160
+ 'mutex.cpp' ,
1161
+ 'string.cpp' ,
1162
+ 'thread.cpp' ,
1163
+ 'valarray.cpp' ,
1164
+ 'chrono.cpp' ,
1165
+ 'exception.cpp' ,
1166
+ 'ios.cpp' ,
1167
+ 'locale.cpp' ,
1168
+ 'regex.cpp' ,
1169
+ 'strstream.cpp'
1170
+ ]
1171
+ for src in libcxx_files :
1148
1172
o = in_temp (src + '.o' )
1149
- execute ([shared .PYTHON , shared .EMXX , shared .path_from_root ('system' , 'lib' , 'libcxx' , src ), '-o' , o ], stdout = stdout , stderr = stderr )
1173
+ srcfile = shared .path_from_root ('system' , 'lib' , 'libcxx' , src )
1174
+ execute ([shared .PYTHON , shared .EMXX , srcfile , '-o' , o ], stdout = stdout , stderr = stderr )
1150
1175
os .append (o )
1151
1176
shared .Building .link (os , in_temp ('libcxx.bc' ))
1152
1177
return in_temp ('libcxx.bc' )
@@ -1163,9 +1188,14 @@ try:
1163
1188
def create_libcxxabi ():
1164
1189
if DEBUG : print >> sys .stderr , 'emcc: building libcxxabi for cache'
1165
1190
os = []
1166
- for src in ['private_typeinfo.cpp' , 'typeinfo.cpp' ]:
1191
+ libcxxabi_files = [
1192
+ 'private_typeinfo.cpp' ,
1193
+ 'typeinfo.cpp'
1194
+ ]
1195
+ for src in libcxxabi_files :
1167
1196
o = in_temp (src + '.o' )
1168
- execute ([shared .PYTHON , shared .EMXX , shared .path_from_root ('system' , 'lib' , 'libcxxabi' , 'src' , src ), '-o' , o ], stdout = stdout , stderr = stderr )
1197
+ srcfile = shared .path_from_root ('system' , 'lib' , 'libcxxabi' , 'src' , src )
1198
+ execute ([shared .PYTHON , shared .EMXX , srcfile , '-o' , o ], stdout = stdout , stderr = stderr )
1169
1199
os .append (o )
1170
1200
shared .Building .link (os , in_temp ('libcxxabi.bc' ))
1171
1201
return in_temp ('libcxxabi.bc' )
0 commit comments