Skip to content

Commit dfd0682

Browse files
Silence echo in do command within run_python_compiler.bat
The emscan-deps.bat file produces invalid dynamic dependency files, suffix `.ddi`, due to the `do` command being echoed. The output of the scan step is used to create a temporary file that then is renamed into the built .ddi file. Example of emscripten build generated file: ``` D:\emscriptenDebug\out>() { "revision": 0, "rules": [ { "primary-output": "CMakeFiles\\demoApp.dir\\demoApp.cpp.o" } ], "version": 1 } ``` This file should be a validly formed JSON document, instead we have a blank line and a line produced by the `do` command preceding the JSON document This commit represents one proposed solution
1 parent 32f46a6 commit dfd0682

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/maint/run_python_compiler.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
::
33
:: Automatically generated by `create_entry_points.py`; DO NOT EDIT.
44
::
5-
:: To make modifications to this file, edit `tools/run_python_compiler.bat` and
6-
:: then run `tools/create_entry_points.py`
5+
:: To make modifications to this file, edit `tools/maint/run_python_compiler.bat` and
6+
:: then run `tools/maint/create_entry_points.py`
77

88
:: N.b. In Windows .bat scripts, the ':' character cannot appear inside any if () blocks,
99
:: or there will be a parsing error.
@@ -26,7 +26,7 @@
2626
set "MYDIR=%~dp0"
2727
goto FOUND_MYDIR
2828
)
29-
@for %%I in (%~n0.bat) do (
29+
@for %%I in (%~n0.bat) do @(
3030
@if exist %%~$PATH:I (
3131
set MYDIR=%%~dp$PATH:I
3232
) else (

0 commit comments

Comments
 (0)