mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-40280: Use Setup.stdlib static for wasm builds (GH-29784)
``Modules/Setup.stdlib`` contains ``Setup`` lines for all stdlib extension modules for which ``configure`` has detected their dependencies. The file is not used yet and still under development. To use the file, do ``ln -sfr Modules/Setup.stdlib Modules/Setup.local``.
This commit is contained in:
parent
cd876c8493
commit
ee1e2c604c
3 changed files with 19 additions and 2 deletions
|
@ -22,8 +22,8 @@
|
||||||
|
|
||||||
|
|
||||||
# Build modules statically or as shared extensions
|
# Build modules statically or as shared extensions
|
||||||
*shared*
|
# *shared* / *static*
|
||||||
# *static*
|
*@MODULE_BUILDTYPE@*
|
||||||
|
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
10
configure
vendored
10
configure
vendored
|
@ -770,6 +770,7 @@ MODULE_TIME_FALSE
|
||||||
MODULE_TIME_TRUE
|
MODULE_TIME_TRUE
|
||||||
MODULE__IO_FALSE
|
MODULE__IO_FALSE
|
||||||
MODULE__IO_TRUE
|
MODULE__IO_TRUE
|
||||||
|
MODULE_BUILDTYPE
|
||||||
TEST_MODULES
|
TEST_MODULES
|
||||||
LIBRARY_DEPS
|
LIBRARY_DEPS
|
||||||
STATIC_LIBPYTHON
|
STATIC_LIBPYTHON
|
||||||
|
@ -21012,6 +21013,15 @@ case $ac_sys_system in #(
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
case $host_cpu in #(
|
||||||
|
wasm32|wasm64) :
|
||||||
|
MODULE_BUILDTYPE=static ;; #(
|
||||||
|
*) :
|
||||||
|
MODULE_BUILDTYPE=${MODULE_BUILDTYPE:-shared}
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
MODULE_BLOCK=
|
MODULE_BLOCK=
|
||||||
|
|
||||||
|
|
|
@ -6185,6 +6185,13 @@ AS_CASE([$ac_sys_system],
|
||||||
[py_stdlib_not_available="_scproxy"]
|
[py_stdlib_not_available="_scproxy"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
dnl Default value for Modules/Setup.stdlib build type
|
||||||
|
AS_CASE([$host_cpu],
|
||||||
|
[wasm32|wasm64], [MODULE_BUILDTYPE=static],
|
||||||
|
[MODULE_BUILDTYPE=${MODULE_BUILDTYPE:-shared}]
|
||||||
|
)
|
||||||
|
AC_SUBST([MODULE_BUILDTYPE])
|
||||||
|
|
||||||
dnl _MODULE_BLOCK_ADD([VAR], [VALUE])
|
dnl _MODULE_BLOCK_ADD([VAR], [VALUE])
|
||||||
dnl internal: adds $1=quote($2) to MODULE_BLOCK
|
dnl internal: adds $1=quote($2) to MODULE_BLOCK
|
||||||
AC_DEFUN([_MODULE_BLOCK_ADD], [AS_VAR_APPEND([MODULE_BLOCK], ["$1=_AS_QUOTE([$2])$as_nl"])])
|
AC_DEFUN([_MODULE_BLOCK_ADD], [AS_VAR_APPEND([MODULE_BLOCK], ["$1=_AS_QUOTE([$2])$as_nl"])])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue