bpo-40280: Add wasm32-emscripten and wasm32-wasi SOABI (GH-32095)

Shared extension on Emscripten now have suffix
``.cpython-311-wasm32-emscripten.so`` (JS loader) and
``.cpython-311-wasm32-emscripten.wasm`` (WebAssembly code).
This commit is contained in:
Christian Heimes 2022-03-24 23:09:42 +02:00 committed by GitHub
parent 4119d2d7c9
commit 8a0a9e5b19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,2 @@
Add SOABI ``wasm32-emscripten`` for Emscripten and ``wasm32-wasi`` for WASI
on 32bit WASM as well as ``wasm64`` counter parts.

16
configure generated vendored
View File

@ -6084,6 +6084,22 @@ cat > conftest.c <<EOF
darwin
#elif defined(__VXWORKS__)
vxworks
#elif defined(__wasm32__)
# if defined(__EMSCRIPTEN__)
wasm32-emscripten
# elif defined(__wasi__)
wasm32-wasi
# else
# error unknown wasm32 platform
# endif
#elif defined(__wasm64__)
# if defined(__EMSCRIPTEN)
wasm64-emscripten
# elif defined(__wasi__)
wasm64-wasi
# else
# error unknown wasm64 platform
# endif
#else
# error unknown platform triplet
#endif

View File

@ -973,6 +973,22 @@ cat > conftest.c <<EOF
darwin
#elif defined(__VXWORKS__)
vxworks
#elif defined(__wasm32__)
# if defined(__EMSCRIPTEN__)
wasm32-emscripten
# elif defined(__wasi__)
wasm32-wasi
# else
# error unknown wasm32 platform
# endif
#elif defined(__wasm64__)
# if defined(__EMSCRIPTEN)
wasm64-emscripten
# elif defined(__wasi__)
wasm64-wasi
# else
# error unknown wasm64 platform
# endif
#else
# error unknown platform triplet
#endif