diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-14 17:42:35 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-14 17:42:35 -0800 |
commit | bd670b9f4d5f2a041ec30309c1cc869c16bb5e81 (patch) | |
tree | aac8eac5bc88f12e3a6e629d604bb5cbac009171 /tools | |
parent | df41a405914e60d21262b3fb9ab81a5832bb4405 (diff) |
refactor emcc to use a temp directory for intermediate files
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py index 1865a026..cecfd4ac 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -377,6 +377,8 @@ class Building: if output_processor is not None: output_processor(open(filename + '.o.js').read()) + return filename + '.o.js' + @staticmethod def pick_llvm_opts(optimization_level, safe=True): ''' @@ -480,6 +482,7 @@ class Building: f = open(filename, 'w') f.write(output) f.close() + return filename @staticmethod def eliminator(filename): @@ -494,6 +497,7 @@ class Building: f = open(filename, 'w') f.write(output) f.close() + return filename @staticmethod def closure_compiler(filename): @@ -510,3 +514,5 @@ class Building: if 'ERROR' in cc_output: raise Exception('Error in cc output: ' + cc_output) + return filename + '.cc.js' + |