aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-04 18:51:43 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-04 18:51:43 -0800
commit51fbd38572cb1cd01950c038e7d7ab9fed8cac2a (patch)
tree1f720d6e19638f451ce9a4a3aa841584533dc494 /tools/shared.py
parent856626b99f8538abba9928aefc7b38e19387a5be (diff)
fix line numbers with multiple linked files
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 9750cb8a..4def2cee 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -264,12 +264,12 @@ class Building:
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):
+ def emmaken(filename, args=[], 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]
+ Popen([EMMAKEN, 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