Skip to content

Commit

Permalink
bpo-40280: Add wasm32-emscripten and wasm32-wasi SOABI (pythonGH-32095)
Browse files Browse the repository at this point in the history
Shared extension on Emscripten now have suffix
``.cpython-311-wasm32-emscripten.so`` (JS loader) and
``.cpython-311-wasm32-emscripten.wasm`` (WebAssembly code).
  • Loading branch information
tiran authored Mar 24, 2022
1 parent 4119d2d commit 8a0a9e5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 changes: 16 additions & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a0a9e5

Please sign in to comment.