]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40280: Add wasm cross build targets (GH-29771)
authorChristian Heimes <christian@python.org>
Thu, 25 Nov 2021 20:24:40 +0000 (22:24 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Nov 2021 20:24:40 +0000 (21:24 +0100)
Misc/NEWS.d/next/Build/2021-11-25-10-55-03.bpo-40280.E9-gsQ.rst [new file with mode: 0644]
configure
configure.ac

diff --git a/Misc/NEWS.d/next/Build/2021-11-25-10-55-03.bpo-40280.E9-gsQ.rst b/Misc/NEWS.d/next/Build/2021-11-25-10-55-03.bpo-40280.E9-gsQ.rst
new file mode 100644 (file)
index 0000000..04579b4
--- /dev/null
@@ -0,0 +1,3 @@
+``configure`` now accepts machine ``wasm32`` or ``wasm64`` and OS ``wasi``
+or ``emscripten`` for cross building, e.g. ``wasm32-unknown-emscripten``,
+``wasm32-wasi``, or ``wasm32-unknown-wasi``.
index abfda2b00de7459f49357dd691a20454e6e20f0e..944e97ccf992936315ecaf2ecec52dcfdb28a4ca 100755 (executable)
--- a/configure
+++ b/configure
@@ -3717,6 +3717,12 @@ then
        *-*-vxworks*)
            ac_sys_system=VxWorks
            ;;
+       *-*-emscripten)
+           ac_sys_system=Emscripten
+           ;;
+       *-*-wasi)
+           ac_sys_system=WASI
+           ;;
        *)
                # for now, limit cross builds to known configurations
                MACHDEP="unknown"
@@ -3767,6 +3773,9 @@ if test "$cross_compiling" = yes; then
        *-*-vxworks*)
                _host_cpu=$host_cpu
                ;;
+       wasm32-*-* | wasm64-*-*)
+               _host_cpu=$host_cpu
+               ;;
        *)
                # for now, limit cross builds to known configurations
                MACHDEP="unknown"
@@ -10382,6 +10391,9 @@ fi
        # Dynamic linking for HP-UX
 
 
+
+
+
 have_uuid=missing
 
 for ac_header in uuid.h
 done
 
 
-
-
-
-
 if test "x$have_uuid" = xmissing; then :
 
 
index 1853baa5a8e8c260edd799aedf04264cb3849610..2140e3e43db82325ed654f6ff0e9b034b94fc672 100644 (file)
@@ -465,6 +465,12 @@ then
        *-*-vxworks*)
            ac_sys_system=VxWorks
            ;;
+       *-*-emscripten)
+           ac_sys_system=Emscripten
+           ;;
+       *-*-wasi)
+           ac_sys_system=WASI
+           ;;
        *)
                # for now, limit cross builds to known configurations
                MACHDEP="unknown"
@@ -514,6 +520,9 @@ if test "$cross_compiling" = yes; then
        *-*-vxworks*)
                _host_cpu=$host_cpu
                ;;
+       wasm32-*-* | wasm64-*-*)
+               _host_cpu=$host_cpu
+               ;;
        *)
                # for now, limit cross builds to known configurations
                MACHDEP="unknown"