Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions em++.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:: Entry point for running python scripts on windows systems.
:: To modify this file, edit `tools/run_python.bat` and then run
:: To modify this file, edit `tools/run_python_compiler.bat` and then run
:: `tools/create_entry_points.py`

@setlocal
Expand All @@ -8,11 +8,12 @@
set EM_PY=python
)

@set ARGS=%*
@if "%_EMCC_CCACHE%"=="" (
:: Do regular invocation of em++.py compiler
"%EM_PY%" "%~dp0\%~n0.py" %*
"%EM_PY%" "%~dp0\%~n0.py" %ARGS:)=^)%
) else (
:: Remove the ccache env. var, invoke ccache and re-enter this script to take the above branch.
set _EMCC_CCACHE=
ccache "%~dp0\%~n0.bat" %*
ccache "%~dp0\%~n0.bat" %ARGS:)=^)%
)
7 changes: 4 additions & 3 deletions emcc.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:: Entry point for running python scripts on windows systems.
:: To modify this file, edit `tools/run_python.bat` and then run
:: To modify this file, edit `tools/run_python_compiler.bat` and then run
:: `tools/create_entry_points.py`

@setlocal
Expand All @@ -8,11 +8,12 @@
set EM_PY=python
)

@set ARGS=%*
@if "%_EMCC_CCACHE%"=="" (
:: Do regular invocation of em++.py compiler
"%EM_PY%" "%~dp0\%~n0.py" %*
"%EM_PY%" "%~dp0\%~n0.py" %ARGS:)=^)%
) else (
:: Remove the ccache env. var, invoke ccache and re-enter this script to take the above branch.
set _EMCC_CCACHE=
ccache "%~dp0\%~n0.bat" %*
ccache "%~dp0\%~n0.bat" %ARGS:)=^)%
)
7 changes: 4 additions & 3 deletions tools/run_python_compiler.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:: Entry point for running python scripts on windows systems.
:: To modify this file, edit `tools/run_python.bat` and then run
:: To modify this file, edit `tools/run_python_compiler.bat` and then run
:: `tools/create_entry_points.py`

@setlocal
Expand All @@ -8,11 +8,12 @@
set EM_PY=python
)

@set ARGS=%*
@if "%_EMCC_CCACHE%"=="" (
:: Do regular invocation of em++.py compiler
"%EM_PY%" "%~dp0\%~n0.py" %*
"%EM_PY%" "%~dp0\%~n0.py" %ARGS:)=^)%
) else (
:: Remove the ccache env. var, invoke ccache and re-enter this script to take the above branch.
set _EMCC_CCACHE=
ccache "%~dp0\%~n0.bat" %*
ccache "%~dp0\%~n0.bat" %ARGS:)=^)%
)