diff options
| author | Christian Heimes <christian@python.org> | 2021-11-25 22:24:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-25 21:24:40 +0100 |
| commit | 1052a39b7603e4d8401a5987af0c36f4a1d0b1e4 (patch) | |
| tree | 0413ec8ae95323079521a531236c641a665bae0d | |
| parent | dfcc6ff36f8bedae420fe228312527ec3937c973 (diff) | |
| download | cpython-git-1052a39b7603e4d8401a5987af0c36f4a1d0b1e4.tar.gz | |
bpo-40280: Add wasm cross build targets (GH-29771)
| -rw-r--r-- | Misc/NEWS.d/next/Build/2021-11-25-10-55-03.bpo-40280.E9-gsQ.rst | 3 | ||||
| -rwxr-xr-x | configure | 16 | ||||
| -rw-r--r-- | configure.ac | 9 |
3 files changed, 24 insertions, 4 deletions
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 index 0000000000..04579b4ecb --- /dev/null +++ b/Misc/NEWS.d/next/Build/2021-11-25-10-55-03.bpo-40280.E9-gsQ.rst @@ -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``. @@ -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 @@ -10414,10 +10426,6 @@ fi done - - - - if test "x$have_uuid" = xmissing; then : diff --git a/configure.ac b/configure.ac index 1853baa5a8..2140e3e43d 100644 --- a/configure.ac +++ b/configure.ac @@ -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" |
