diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-22 21:34:03 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-22 21:34:03 -0800 |
commit | 753437a56d63666d0761b66ead1b0d491c4bcb2b (patch) | |
tree | 0c6885d1ad2feba99dea7b80a93cc734a197d76d /em++ | |
parent | 718ee071f49d7714da059931d6dab3bedd85ee9d (diff) |
emcc stuff
Diffstat (limited to 'em++')
-rwxr-xr-x | em++ | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#!/usr/bin/env python + +''' +See emcc.py. This script forwards to there, noting that we want C++ and not C by default +''' + +import os, sys + +__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:])) + |