aboutsummaryrefslogtreecommitdiff
path: root/em++
blob: 810b7aec07a757d5b0d2fd58f418eee0f5c3a2eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python2

'''
See emcc.py. This script forwards to there, noting that we want C++ and not C by default
'''

import os, subprocess, sys
from tools import shared

os.environ['EMMAKEN_CXX'] = '1'
if not os.path.exists(shared.PYTHON):
  print >> sys.stderr, 'warning: PYTHON does not seem to be defined properly in ~/.emscripten (%s)' % shared.PYTHON
exit(subprocess.call([shared.PYTHON, shared.EMCC] + sys.argv[1:]))