diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-11 17:21:20 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-11 17:21:20 -0800 |
commit | a712f0dbf34060af8ec376483bc9a446233de113 (patch) | |
tree | 62120e33e1d9728b6235e98b0f93bfff3063eec4 /tools/shared.py | |
parent | 8e0fd1cb75afb4d4843f89b889a634da171d32fe (diff) |
fix bug with duplicate llvm_as, and other tweaks to that code
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/shared.py b/tools/shared.py index 5cc06240..6fa9ab9a 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -304,14 +304,14 @@ class Building: assert os.path.exists(filename + '.o.ll'), 'Could not create .ll file: ' + output @staticmethod - def llvm_as(source, target): + def llvm_as(filename): # LLVM assembly ==> LLVM binary try: os.remove(target) except: pass - output = Popen([LLVM_AS, source, '-o=' + target], stdout=PIPE, stderr=STDOUT).communicate()[0] - assert os.path.exists(target), 'Could not create bc file: ' + output + output = Popen([LLVM_AS, filename + '.o.ll', '-o=' + filename + '.o'], stdout=PIPE, stderr=STDOUT).communicate()[0] + assert os.path.exists(filename + '.o'), 'Could not create bc file: ' + output @staticmethod def emscripten(filename, output_processor=None, append_ext=True, extra_args=[]): |