diff options
author | Christian Heimes <christian@python.org> | 2021-11-26 07:26:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-26 07:26:49 (GMT) |
commit | ee1e2c604c8a66a407116d9c3e589ab0b9580c54 (patch) | |
tree | 0220b214f9e400b21d6cb97770448b848e7e6387 /configure | |
parent | cd876c84932ecc2f7a6c41f3fc800a34d5b06b95 (diff) | |
download | cpython-ee1e2c604c8a66a407116d9c3e589ab0b9580c54.zip cpython-ee1e2c604c8a66a407116d9c3e589ab0b9580c54.tar.gz cpython-ee1e2c604c8a66a407116d9c3e589ab0b9580c54.tar.bz2 |
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``.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -770,6 +770,7 @@ MODULE_TIME_FALSE MODULE_TIME_TRUE MODULE__IO_FALSE MODULE__IO_TRUE +MODULE_BUILDTYPE TEST_MODULES LIBRARY_DEPS STATIC_LIBPYTHON @@ -21012,6 +21013,15 @@ case $ac_sys_system in #( ;; esac +case $host_cpu in #( + wasm32|wasm64) : + MODULE_BUILDTYPE=static ;; #( + *) : + MODULE_BUILDTYPE=${MODULE_BUILDTYPE:-shared} + ;; +esac + + MODULE_BLOCK= |