https://github.com/kripken/emscripten
Raw File
Tip revision: ca912fdf04149416e5762a13c4a25e69f481a4d9 authored by Alon Zakai on 23 September 2013, 23:53:48 UTC
sort target labels in switches so output is consistently ordered
Tip revision: ca912fd
em++
#!/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:]))

back to top