aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
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