diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-20 21:02:46 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-20 21:02:46 -0800 |
commit | 386dc0fa02d54a8d91a0993259415f5713d5e781 (patch) | |
tree | 4068314930d5947b34c3419150f798fbbd57b147 /em++.py | |
parent | dfe5f60e7c44d3f7fc7ac92e0ce6e76497319480 (diff) |
sketch of emcc
Diffstat (limited to 'em++.py')
-rwxr-xr-x | em++.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/em++.py b/em++.py new file mode 100755 index 00000000..1663dd06 --- /dev/null +++ b/em++.py @@ -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:])) + |