mirror of https://github.com/python/cpython
bpo-40280: Add wasm cross build targets (GH-29771)
This commit is contained in:
parent
dfcc6ff36f
commit
1052a39b76
|
@ -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*)
|
*-*-vxworks*)
|
||||||
ac_sys_system=VxWorks
|
ac_sys_system=VxWorks
|
||||||
;;
|
;;
|
||||||
|
*-*-emscripten)
|
||||||
|
ac_sys_system=Emscripten
|
||||||
|
;;
|
||||||
|
*-*-wasi)
|
||||||
|
ac_sys_system=WASI
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# for now, limit cross builds to known configurations
|
# for now, limit cross builds to known configurations
|
||||||
MACHDEP="unknown"
|
MACHDEP="unknown"
|
||||||
|
@ -3767,6 +3773,9 @@ if test "$cross_compiling" = yes; then
|
||||||
*-*-vxworks*)
|
*-*-vxworks*)
|
||||||
_host_cpu=$host_cpu
|
_host_cpu=$host_cpu
|
||||||
;;
|
;;
|
||||||
|
wasm32-*-* | wasm64-*-*)
|
||||||
|
_host_cpu=$host_cpu
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# for now, limit cross builds to known configurations
|
# for now, limit cross builds to known configurations
|
||||||
MACHDEP="unknown"
|
MACHDEP="unknown"
|
||||||
|
@ -10382,6 +10391,9 @@ fi
|
||||||
# Dynamic linking for HP-UX
|
# Dynamic linking for HP-UX
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
have_uuid=missing
|
have_uuid=missing
|
||||||
|
|
||||||
for ac_header in uuid.h
|
for ac_header in uuid.h
|
||||||
|
@ -10414,10 +10426,6 @@ fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test "x$have_uuid" = xmissing; then :
|
if test "x$have_uuid" = xmissing; then :
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -465,6 +465,12 @@ then
|
||||||
*-*-vxworks*)
|
*-*-vxworks*)
|
||||||
ac_sys_system=VxWorks
|
ac_sys_system=VxWorks
|
||||||
;;
|
;;
|
||||||
|
*-*-emscripten)
|
||||||
|
ac_sys_system=Emscripten
|
||||||
|
;;
|
||||||
|
*-*-wasi)
|
||||||
|
ac_sys_system=WASI
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# for now, limit cross builds to known configurations
|
# for now, limit cross builds to known configurations
|
||||||
MACHDEP="unknown"
|
MACHDEP="unknown"
|
||||||
|
@ -514,6 +520,9 @@ if test "$cross_compiling" = yes; then
|
||||||
*-*-vxworks*)
|
*-*-vxworks*)
|
||||||
_host_cpu=$host_cpu
|
_host_cpu=$host_cpu
|
||||||
;;
|
;;
|
||||||
|
wasm32-*-* | wasm64-*-*)
|
||||||
|
_host_cpu=$host_cpu
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# for now, limit cross builds to known configurations
|
# for now, limit cross builds to known configurations
|
||||||
MACHDEP="unknown"
|
MACHDEP="unknown"
|
||||||
|
|
Loading…
Reference in New Issue