gh-127503: Emscripten make Python.sh function as proper Python CLI (#127506)

Modifies the python.sh script to work on macOS, and adapt to recent emscripten changes.
This commit is contained in:
Hood Chatham
2024-12-05 01:44:50 +01:00
committed by GitHub
parent 43634fc1fc
commit 87faf0a9c4
4 changed files with 51 additions and 17 deletions

2
configure generated vendored
View File

@@ -9434,7 +9434,7 @@ fi
as_fn_append LDFLAGS_NODIST " -sWASM_BIGINT"
as_fn_append LDFLAGS_NODIST " -sFORCE_FILESYSTEM -lidbfs.js -lnodefs.js -lproxyfs.js -lworkerfs.js"
as_fn_append LDFLAGS_NODIST " -sEXPORTED_RUNTIME_METHODS=FS,callMain"
as_fn_append LDFLAGS_NODIST " -sEXPORTED_RUNTIME_METHODS=FS,callMain,ENV"
as_fn_append LDFLAGS_NODIST " -sEXPORTED_FUNCTIONS=_main,_Py_Version"
as_fn_append LDFLAGS_NODIST " -sSTACK_SIZE=5MB"