Граф коммитов

9 Коммитов

Автор SHA1 Сообщение Дата
juj 75b0a5f537
Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146)
* Avoid sharing the parent process's stdin handle to python when invoking python via emcc.bat script, to prevent a rare python deadlock hang.

* Fix Windows .bat scripts from leaking set env. vars.
Work around a Windows 7 batch script exit code issue.
Work around a Windows Python spawn issue: https://bugs.python.org/issue34780

* Do not let anything come between python subprocess spawn and the exit statement (an if() statement would taint the 0 variable)

* Fix bad automerge

* Avoid dispatching emcc from within an if() block in .bat file

* Always use exit in .bat scripts to avoid goto tainting ERRORLEVEL
2021-10-06 11:11:45 -07:00
Sam Clegg b99ff3e71e
Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
juj 59aedd441c
Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
Sam Clegg 0cddccb13a
Support spaces in python executable in .bat launcher scripts (#11691)
Fixes: #11638
2020-07-22 22:10:11 -07:00
Sam Clegg e0702c9e27
Honor EMSDK_PYTHON in `bat` and `sh` launcher scripts (#11611) 2020-07-10 14:06:41 -07:00
Sam Clegg 1c6e796687
Stop using symlinks for shell script launchers (#10921)
For windows users that use MINGW the shell scripts as still useful
(preferable to the .bat scripts) but they don't support symlink.

Add a little script for managing these entry points.
This change was mostly mechanically created by running this script.
2020-04-15 10:27:21 -07:00
Sam Clegg 3e52dcc2b6
Fix windows .bat launchers (#10743)
The non-py version of these scripts were converted to shell scripts
in #10729.  The .bat files run python explicitly so can directly
reference .py versions of these scripts.

Also, move em-config to em-config.py to match all the others.
2020-03-20 18:39:06 -07:00
Jukka Jylänki a4a7872e85 Fix python spawn scripts on Windows when the emscripten path contains spaces, like C:\Program Files\emscripten. 2013-08-23 16:05:53 +03:00
Jukka Jylänki 1c4c4816b7 Use .bat files to route 'python emxxx' to 'emxxx' on Windows. Remove reference to juj/vs-tool emxxx.exe in favor of the new .bat files. 2013-04-07 10:26:35 +03:00