File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 545
545
*-*-cygwin*)
546
546
ac_sys_system=Cygwin
547
547
;;
548
+ *-*-mingw*)
549
+ ac_sys_system=MINGW
550
+ ;;
548
551
*-*-vxworks*)
549
552
ac_sys_system=VxWorks
550
553
;;
580
583
linux*) MACHDEP="linux";;
581
584
cygwin*) MACHDEP="cygwin";;
582
585
darwin*) MACHDEP="darwin";;
586
+ mingw*) MACHDEP="win32";;
583
587
'') MACHDEP="unknown";;
584
588
esac
585
589
fi
@@ -605,13 +609,24 @@ if test "$cross_compiling" = yes; then
605
609
;;
606
610
wasm32-*-* | wasm64-*-*)
607
611
_host_cpu=$host_cpu
612
+ ;;
613
+ *-*-mingw*)
614
+ _host_cpu=
608
615
;;
609
616
*)
610
617
# for now, limit cross builds to known configurations
611
618
MACHDEP="unknown"
612
619
AC_MSG_ERROR ( [ cross build not supported for $host] )
613
620
esac
614
621
_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
622
+
623
+ case "$host_os" in
624
+ mingw*)
625
+ # As sys.platform() return 'win32' to build python and extantions
626
+ # we will use 'mingw' (in setup.py and etc.)
627
+ _PYTHON_HOST_PLATFORM=mingw
628
+ ;;
629
+ esac
615
630
fi
616
631
617
632
# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
You can’t perform that action at this time.
0 commit comments