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
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ commands:
echo "-----"
echo "Running browser tests (EMTEST_BROWSER=$EMTEST_BROWSER)"
echo "-----"
test/runner.bat << parameters.test_targets >>
test/runner << parameters.test_targets >>
- upload-test-results
test-sockets-chrome:
description: "Runs emscripten sockets tests under chrome"
Expand Down Expand Up @@ -1339,12 +1339,12 @@ jobs:
python: "$EMSDK_PYTHON"
- run:
name: "crossplatform tests"
command: test/runner.bat --crossplatform-only
command: test/runner --crossplatform-only
- upload-test-results
# Run a single websockify-based test to ensure it works on windows.
- run:
name: "sockets.test_nodejs_sockets_echo*"
command: "test/runner.bat sockets.test_nodejs_sockets_echo*"
command: "test/runner sockets.test_nodejs_sockets_echo*"
- upload-test-results

test-mac-arm64:
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ See docs/process.md for more on how version tagging works.

6.0.0 (in development)
----------------------
- On Windows, Emscripten now ships `.exe` tool launchers, rather
than `.bat` and/or `.ps1`. This means that any scripts that explicitly
reference, e.g. `emcc.bat`, will need to be updated to just `emcc` (or
`emcc.exe`). For the time being you can still get the old `.bat` files by
running `tools/maint/create_entry_points.py --bat-files`. (#24858)
- When performing a streaming Fetch operation, the max chunk size of downloaded
bytes that is handed over to the Wasm side from JS is now capped to maximum
of 8 megabytes. This ensures that a streaming Fetch stays streaming, rather
Expand Down
12 changes: 7 additions & 5 deletions tools/maint/create_entry_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ def write_file(filename, content):
f.write(content)


def main(all_platforms, use_exe_files):
def main(all_platforms, use_bat_file):
if 'EM_USE_BAT_FILES' in os.environ:
use_bat_file = True
is_windows = sys.platform.startswith('win')
is_msys2 = 'MSYSTEM' in os.environ
do_unix = all_platforms or not is_windows or is_msys2
Expand Down Expand Up @@ -116,15 +118,15 @@ def generate_entry_points(cmd, path):
maybe_remove(launcher + '.bat')
maybe_remove(launcher + '.ps1')
maybe_remove(launcher + '.exe')
if use_exe_files:
shutil.copyfile(windows_exe, launcher + '.exe')
else:
if use_bat_file:
write_file(launcher + '.bat', bat_data)
write_file(launcher + '.ps1', ps1_data)
else:
shutil.copyfile(windows_exe, launcher + '.exe')

generate_entry_points(entry_points, os.path.join(__scriptdir__, 'run_python'))
generate_entry_points(compiler_entry_points, os.path.join(__scriptdir__, 'run_python_compiler'))


if __name__ == '__main__':
sys.exit(main('--all' in sys.argv, '--exe-files' in sys.argv))
sys.exit(main('--all' in sys.argv, '--bat-files' in sys.argv))
Loading