mirror of https://github.com/python/cpython.git
bpo-40280: Emscripten systems use .wasm suffix by default (GH-29842)
This commit is contained in:
parent
c1dec9540a
commit
6ac3c8a314
|
@ -53,7 +53,11 @@ General Options
|
||||||
Set the Python executable suffix to *SUFFIX*.
|
Set the Python executable suffix to *SUFFIX*.
|
||||||
|
|
||||||
The default suffix is ``.exe`` on Windows and macOS (``python.exe``
|
The default suffix is ``.exe`` on Windows and macOS (``python.exe``
|
||||||
executable), and an empty string on other platforms (``python`` executable).
|
executable), ``.wasm`` on Emscripten (``python.wasm`` executable), and
|
||||||
|
an empty string on other platforms (``python`` executable).
|
||||||
|
|
||||||
|
.. versionchanged:: 3.11
|
||||||
|
The default suffix on Emscripten platform is ``.wasm``.
|
||||||
|
|
||||||
.. cmdoption:: --with-tzpath=<list of absolute paths separated by pathsep>
|
.. cmdoption:: --with-tzpath=<list of absolute paths separated by pathsep>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Emscripten platform now uses ``.wasm`` suffix by default.
|
|
@ -1738,7 +1738,8 @@ Optional Packages:
|
||||||
--with-cxx-main[=COMPILER]
|
--with-cxx-main[=COMPILER]
|
||||||
compile main() and link Python executable with C++
|
compile main() and link Python executable with C++
|
||||||
compiler specified in COMPILER (default is $CXX)
|
compiler specified in COMPILER (default is $CXX)
|
||||||
--with-suffix=SUFFIX set executable suffix to SUFFIX (default is '.exe')
|
--with-suffix=SUFFIX set executable suffix to SUFFIX (default is empty,
|
||||||
|
yes is mapped to '.exe')
|
||||||
--with-pydebug build with Py_DEBUG defined (default is no)
|
--with-pydebug build with Py_DEBUG defined (default is no)
|
||||||
--with-trace-refs enable tracing references for debugging purpose
|
--with-trace-refs enable tracing references for debugging purpose
|
||||||
(default is no)
|
(default is no)
|
||||||
|
@ -6136,11 +6137,26 @@ $as_echo_n "checking for --with-suffix... " >&6; }
|
||||||
# Check whether --with-suffix was given.
|
# Check whether --with-suffix was given.
|
||||||
if test "${with_suffix+set}" = set; then :
|
if test "${with_suffix+set}" = set; then :
|
||||||
withval=$with_suffix;
|
withval=$with_suffix;
|
||||||
case $withval in
|
case $with_suffix in #(
|
||||||
no) EXEEXT=;;
|
no) :
|
||||||
yes) EXEEXT=.exe;;
|
EXEEXT= ;; #(
|
||||||
*) EXEEXT=$withval;;
|
yes) :
|
||||||
esac
|
EXEEXT=.exe ;; #(
|
||||||
|
*) :
|
||||||
|
EXEEXT=$with_suffix
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
case $ac_sys_system in #(
|
||||||
|
Emscripten) :
|
||||||
|
EXEEXT=.wasm ;; #(
|
||||||
|
*) :
|
||||||
|
EXEEXT=
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
|
||||||
|
|
24
configure.ac
24
configure.ac
|
@ -1018,16 +1018,22 @@ atheos*|Linux*/1*)
|
||||||
exit 1;;
|
exit 1;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_MSG_CHECKING(for --with-suffix)
|
AC_MSG_CHECKING([for --with-suffix])
|
||||||
AC_ARG_WITH(suffix,
|
AC_ARG_WITH([suffix],
|
||||||
AS_HELP_STRING([--with-suffix=SUFFIX], [set executable suffix to SUFFIX (default is '.exe')]),
|
[AS_HELP_STRING([--with-suffix=SUFFIX], [set executable suffix to SUFFIX (default is empty, yes is mapped to '.exe')])],
|
||||||
[
|
[
|
||||||
case $withval in
|
AS_CASE([$with_suffix],
|
||||||
no) EXEEXT=;;
|
[no], [EXEEXT=],
|
||||||
yes) EXEEXT=.exe;;
|
[yes], [EXEEXT=.exe],
|
||||||
*) EXEEXT=$withval;;
|
[EXEEXT=$with_suffix]
|
||||||
esac])
|
)
|
||||||
AC_MSG_RESULT($EXEEXT)
|
], [
|
||||||
|
AS_CASE([$ac_sys_system],
|
||||||
|
[Emscripten], [EXEEXT=.wasm],
|
||||||
|
[EXEEXT=]
|
||||||
|
)
|
||||||
|
])
|
||||||
|
AC_MSG_RESULT([$EXEEXT])
|
||||||
|
|
||||||
# Test whether we're running on a non-case-sensitive system, in which
|
# Test whether we're running on a non-case-sensitive system, in which
|
||||||
# case we give a warning if no ext is given
|
# case we give a warning if no ext is given
|
||||||
|
|
Loading…
Reference in New Issue