Skip to content

Commit bf4e84d

Browse files
Alexpuxlazka
authored andcommitted
configure: add MACHDEP and platform on MINGW
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
1 parent db7e699 commit bf4e84d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ then
327327
*-*-cygwin*)
328328
ac_sys_system=Cygwin
329329
;;
330+
*-*-mingw*)
331+
ac_sys_system=MINGW
332+
;;
330333
*-apple-ios*)
331334
ac_sys_system=iOS
332335
;;
@@ -366,6 +369,7 @@ then
366369
linux*) MACHDEP="linux";;
367370
cygwin*) MACHDEP="cygwin";;
368371
darwin*) MACHDEP="darwin";;
372+
mingw*) MACHDEP="win32";;
369373
'') MACHDEP="unknown";;
370374
esac
371375

@@ -777,6 +781,9 @@ if test "$cross_compiling" = yes; then
777781
wasm32-*-* | wasm64-*-*)
778782
_host_ident=$host_cpu
779783
;;
784+
*-*-mingw*)
785+
_host_cpu=
786+
;;
780787
*)
781788
# for now, limit cross builds to known configurations
782789
MACHDEP="unknown"

0 commit comments

Comments
 (0)