Skip to content

Commit 1052a39

Browse files
authored
bpo-40280: Add wasm cross build targets (GH-29771)
1 parent dfcc6ff commit 1052a39

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
``configure`` now accepts machine ``wasm32`` or ``wasm64`` and OS ``wasi``
2+
or ``emscripten`` for cross building, e.g. ``wasm32-unknown-emscripten``,
3+
``wasm32-wasi``, or ``wasm32-unknown-wasi``.

configure

+12-4
Original file line numberDiff line numberDiff line change
@@ -3717,6 +3717,12 @@ then
37173717
*-*-vxworks*)
37183718
ac_sys_system=VxWorks
37193719
;;
3720+
*-*-emscripten)
3721+
ac_sys_system=Emscripten
3722+
;;
3723+
*-*-wasi)
3724+
ac_sys_system=WASI
3725+
;;
37203726
*)
37213727
# for now, limit cross builds to known configurations
37223728
MACHDEP="unknown"
@@ -3767,6 +3773,9 @@ if test "$cross_compiling" = yes; then
37673773
*-*-vxworks*)
37683774
_host_cpu=$host_cpu
37693775
;;
3776+
wasm32-*-* | wasm64-*-*)
3777+
_host_cpu=$host_cpu
3778+
;;
37703779
*)
37713780
# for now, limit cross builds to known configurations
37723781
MACHDEP="unknown"
@@ -10382,6 +10391,9 @@ fi
1038210391
# Dynamic linking for HP-UX
1038310392

1038410393

10394+
10395+
10396+
1038510397
have_uuid=missing
1038610398

1038710399
for ac_header in uuid.h
@@ -10414,10 +10426,6 @@ fi
1041410426
done
1041510427

1041610428

10417-
10418-
10419-
10420-
1042110429
if test "x$have_uuid" = xmissing; then :
1042210430

1042310431

configure.ac

+9
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,12 @@ then
465465
*-*-vxworks*)
466466
ac_sys_system=VxWorks
467467
;;
468+
*-*-emscripten)
469+
ac_sys_system=Emscripten
470+
;;
471+
*-*-wasi)
472+
ac_sys_system=WASI
473+
;;
468474
*)
469475
# for now, limit cross builds to known configurations
470476
MACHDEP="unknown"
@@ -514,6 +520,9 @@ if test "$cross_compiling" = yes; then
514520
*-*-vxworks*)
515521
_host_cpu=$host_cpu
516522
;;
523+
wasm32-*-* | wasm64-*-*)
524+
_host_cpu=$host_cpu
525+
;;
517526
*)
518527
# for now, limit cross builds to known configurations
519528
MACHDEP="unknown"

0 commit comments

Comments
 (0)