aboutsummaryrefslogtreecommitdiff
path: root/em++
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-11 10:23:03 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-11 10:23:03 -0800
commit58f694a190e414af9f811a72952e0ba3f7d94b83 (patch)
tree81c142917d824abeccfbe2654954acb58a582ac6 /em++
parent994e01663b94c16a681a71255d8a1f87f1a23973 (diff)
emcc: --version
Diffstat (limited to 'em++')
-rwxr-xr-xem++9
1 files changed, 2 insertions, 7 deletions
diff --git a/em++ b/em++
index 1663dd06..5dd860f2 100755
--- a/em++
+++ b/em++
@@ -5,13 +5,8 @@ See emcc.py. This script forwards to there, noting that we want C++ and not C by
'''
import os, sys
+from tools import shared
-__rootpath__ = os.path.abspath(os.path.dirname(__file__))
-def path_from_root(*pathelems):
- return os.path.join(__rootpath__, *pathelems)
-exec(open(path_from_root('tools', 'shared.py'), 'r').read())
-
-emmaken = path_from_root('tools', 'emmaken.py')
os.environ['EMMAKEN_CXX'] = '1'
-exit(os.execvp('python', ['python', emmaken] + sys.argv[1:]))
+exit(os.execvp(shared.EMCC, [shared.EMCC] + sys.argv[1:]))