2020-07-11 00:06:41 +03:00
|
|
|
:: Entry point for running python scripts on windows systems.
|
2021-03-22 21:43:02 +03:00
|
|
|
::
|
|
|
|
:: Automatically generated by `create_entry_points.py`; DO NOT EDIT.
|
|
|
|
::
|
|
|
|
:: To make modifications to this file, edit `tools/run_python_compiler.bat` and
|
|
|
|
:: then run `tools/create_entry_points.py`
|
2020-04-15 20:27:21 +03:00
|
|
|
|
2020-11-15 22:43:04 +03:00
|
|
|
@set EM_PY=%EMSDK_PYTHON%
|
|
|
|
@if "%EM_PY%"=="" (
|
2020-07-23 08:10:11 +03:00
|
|
|
set EM_PY=python
|
2020-07-11 00:06:41 +03:00
|
|
|
)
|
|
|
|
|
2021-03-17 15:13:16 +03:00
|
|
|
@if "%_EMCC_CCACHE%"=="" (
|
2021-05-22 07:54:51 +03:00
|
|
|
:: Do regular invocation of the python compiler driver
|
|
|
|
set CMD="%EM_PY%" "%~dp0\%~n0.py"
|
2021-03-16 21:58:34 +03:00
|
|
|
) else (
|
|
|
|
:: Remove the ccache env. var, invoke ccache and re-enter this script to take the above branch.
|
2021-03-17 15:13:16 +03:00
|
|
|
set _EMCC_CCACHE=
|
2021-05-22 07:54:51 +03:00
|
|
|
set CMD=ccache "%~dp0\%~n0.bat"
|
2021-03-16 21:58:34 +03:00
|
|
|
)
|
2021-05-22 07:54:51 +03:00
|
|
|
|
|
|
|
@%CMD% %*
|