summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-03-24 21:09:42 (GMT)
committerGitHub <noreply@github.com>2022-03-24 21:09:42 (GMT)
commit8a0a9e5b1928fab7d9819c8d6498ef5c0b9383af (patch)
tree2c36274dc18955aa06798cf0692865f528a9020d
parent4119d2d7c9e25acd4f16994fb92d656f8b7816d7 (diff)
downloadcpython-8a0a9e5b1928fab7d9819c8d6498ef5c0b9383af.zip
cpython-8a0a9e5b1928fab7d9819c8d6498ef5c0b9383af.tar.gz
cpython-8a0a9e5b1928fab7d9819c8d6498ef5c0b9383af.tar.bz2
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).
-rw-r--r--Misc/NEWS.d/next/Build/2022-03-24-12-12-35.bpo-40280.eAQWrM.rst2
-rwxr-xr-xconfigure16
-rw-r--r--configure.ac16
3 files changed, 34 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Build/2022-03-24-12-12-35.bpo-40280.eAQWrM.rst b/Misc/NEWS.d/next/Build/2022-03-24-12-12-35.bpo-40280.eAQWrM.rst
new file mode 100644
index 0000000..7c7dc6d
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2022-03-24-12-12-35.bpo-40280.eAQWrM.rst
@@ -0,0 +1,2 @@
+Add SOABI ``wasm32-emscripten`` for Emscripten and ``wasm32-wasi`` for WASI
+on 32bit WASM as well as ``wasm64`` counter parts.
diff --git a/configure b/configure
index 128e36a..00f5c7b 100755
--- a/configure
+++ b/configure
@@ -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
diff --git a/configure.ac b/configure.ac
index 6fd95f7..0948661 100644
--- a/configure.ac
+++ b/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