diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-03-23 23:25:03 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-03-25 00:34:10 +0700 |
commit | 80fd6f0bce2b95db6ec539c9275ce24585550e7c (patch) | |
tree | f2931dd859ed4ad1488406b961e19a9cf503b8a0 /emcc | |
parent | b8aa8067c6c8aecba50bca190d6f6fbfb93d1f86 (diff) |
Clean up lists of files, building libcxx / libcxxabi.
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 38 |
1 files changed, 34 insertions, 4 deletions
@@ -1144,9 +1144,34 @@ try: def create_libcxx(): if DEBUG: print >> sys.stderr, 'emcc: building libcxx for cache' os = [] - 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']: + libcxx_files = [ + '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' + ] + for src in libcxx_files: o = in_temp(src + '.o') - execute([shared.PYTHON, shared.EMXX, shared.path_from_root('system', 'lib', 'libcxx', src), '-o', o], stdout=stdout, stderr=stderr) + srcfile = shared.path_from_root('system', 'lib', 'libcxx', src) + execute([shared.PYTHON, shared.EMXX, srcfile, '-o', o], stdout=stdout, stderr=stderr) os.append(o) shared.Building.link(os, in_temp('libcxx.bc')) return in_temp('libcxx.bc') @@ -1163,9 +1188,14 @@ try: def create_libcxxabi(): if DEBUG: print >> sys.stderr, 'emcc: building libcxxabi for cache' os = [] - for src in ['private_typeinfo.cpp', 'typeinfo.cpp']: + libcxxabi_files = [ + 'private_typeinfo.cpp', + 'typeinfo.cpp' + ] + for src in libcxxabi_files: o = in_temp(src + '.o') - execute([shared.PYTHON, shared.EMXX, shared.path_from_root('system', 'lib', 'libcxxabi', 'src', src), '-o', o], stdout=stdout, stderr=stderr) + srcfile = shared.path_from_root('system', 'lib', 'libcxxabi', 'src', src) + execute([shared.PYTHON, shared.EMXX, srcfile, '-o', o], stdout=stdout, stderr=stderr) os.append(o) shared.Building.link(os, in_temp('libcxxabi.bc')) return in_temp('libcxxabi.bc') |