2015-12-19 17:21:36 +03:00
|
|
|
#!/usr/bin/env python
|
2018-09-14 21:08:09 +03:00
|
|
|
# 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.
|
2015-12-19 17:21:36 +03:00
|
|
|
|
2018-04-19 05:13:33 +03:00
|
|
|
# This script should work in python 2 *or* 3. It loads the main code using
|
|
|
|
# python_selector, which may pick a different version.
|
2015-12-19 17:21:36 +03:00
|
|
|
# It also tells emcc.py that we want C++ and not C by default
|
|
|
|
|
2018-01-11 23:46:13 +03:00
|
|
|
import os
|
2015-12-19 17:21:36 +03:00
|
|
|
import sys
|
2018-01-11 23:46:13 +03:00
|
|
|
from tools import python_selector
|
2015-12-19 17:21:36 +03:00
|
|
|
|
|
|
|
sys.argv += ['--emscripten-cxx']
|
|
|
|
|
2018-01-11 23:46:13 +03:00
|
|
|
emcc = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'emcc')
|
|
|
|
if __name__ == '__main__':
|
|
|
|
python_selector.run(emcc)
|