Revision 64a99198ac01fe0bb5e166ca590f3b2b48c7d7ef authored by Sam Clegg on 08 November 2018, 23:24:10 UTC, committed by GitHub on 08 November 2018, 23:24:10 UTC
1 parent bbec323
Raw File
em++.py
#!/usr/bin/env python
# Copyright 2011 The Emscripten Authors.  All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License.  Both these licenses can be
# found in the LICENSE file.

# This script should work in python 2 *or* 3. It loads the main code using
# python_selector, which may pick a different version.
# It also tells emcc.py that we want C++ and not C by default

import os
import sys
from tools import python_selector

sys.argv += ['--emscripten-cxx']

emcc = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'emcc')
if __name__ == '__main__':
  python_selector.run(emcc)
back to top