blob: 1663dd06eb6764df5d922580dc0de647947001f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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:]))
|