diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-25 09:51:02 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-25 09:51:02 -0800 |
commit | 23e1ca79b8e5358398dd997f8d55e383b78e02af (patch) | |
tree | 45abadc6469b1a985c7e5bed04a95dea53b16a70 /tools | |
parent | 3d677ac552e34514669c3d18f8e1a197c92516e5 (diff) |
add two failing tests for issue 123
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py index 5fc26a6d..5b76d2c7 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -258,6 +258,15 @@ class Building: output = Popen([LLVM_AS, filename + '.o.ll', '-o=' + filename + '.o'], stdout=PIPE).communicate()[0] assert os.path.exists(filename + '.o'), 'Could not create bc file: ' + output + @staticmethod # TODO: make this use emcc instead of emmaken + def emmaken(filename, stdout=None, stderr=None, env=None): + try: + os.remove(filename + '.o') + except: + pass + Popen([EMMAKEN, filename, '-o', filename + '.o'], stdout=stdout, stderr=stderr, env=env).communicate()[0] + assert os.path.exists(filename + '.o'), 'Could not create bc file' + @staticmethod def emscripten(filename, output_processor=None, append_ext=True, extra_args=[]): # Add some headers by default. TODO: remove manually adding these in each test |