Skip to content

Commit 80fd6f0

Browse files
committedMar 24, 2013
Clean up lists of files, building libcxx / libcxxabi.
1 parent b8aa806 commit 80fd6f0

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed
 

‎emcc

+34-4
Original file line numberDiff line numberDiff line change
@@ -1144,9 +1144,34 @@ try:
11441144
def create_libcxx():
11451145
if DEBUG: print >> sys.stderr, 'emcc: building libcxx for cache'
11461146
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:
11481172
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)
11501175
os.append(o)
11511176
shared.Building.link(os, in_temp('libcxx.bc'))
11521177
return in_temp('libcxx.bc')
@@ -1163,9 +1188,14 @@ try:
11631188
def create_libcxxabi():
11641189
if DEBUG: print >> sys.stderr, 'emcc: building libcxxabi for cache'
11651190
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:
11671196
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)
11691199
os.append(o)
11701200
shared.Building.link(os, in_temp('libcxxabi.bc'))
11711201
return in_temp('libcxxabi.bc')

0 commit comments

Comments
 (0)
Please sign in to comment.