diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-17 16:52:17 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-17 16:52:17 -0800 |
commit | 832fb4e91ac4a454e7066ddc59db7db72ab11aac (patch) | |
tree | 77d1577b1030192f2e10400a3c83dca77421cff5 /tools/shared.py | |
parent | d5b8f39c9a7ec9cb5f6d363807fac85ae5e82302 (diff) |
use emcc in structbyval and safe_heap tests
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tools/shared.py b/tools/shared.py index faf26816..ea80c08b 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -362,13 +362,10 @@ class Building: ret.defs.append(symbol) return ret - @staticmethod # TODO: make this use emcc instead of emmaken - def emmaken(filename, args=[], stdout=None, stderr=None, env=None): - try: - os.remove(filename + '.o') - except: - pass - Popen([EMMAKEN, filename] + args + ['-o', filename + '.o'], stdout=stdout, stderr=stderr, env=env).communicate()[0] + @staticmethod + def emcc(filename, args=[], stdout=None, stderr=None, env=None): + try_delete(filename + '.o') + Popen([EMCC, filename] + args + ['-o', filename + '.o'], stdout=stdout, stderr=stderr, env=env).communicate()[0] assert os.path.exists(filename + '.o'), 'Could not create bc file' @staticmethod |