mirror of https://github.com/python/cpython
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:
parent
4119d2d7c9
commit
8a0a9e5b19
|
@ -0,0 +1,2 @@
|
|||
Add SOABI ``wasm32-emscripten`` for Emscripten and ``wasm32-wasi`` for WASI
|
||||
on 32bit WASM as well as ``wasm64`` counter parts.
|
|
@ -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
|
||||
|
|
16
configure.ac
16
configure.ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue