meson.eclass: set system=windows for mingw cross-compiles
authorMike Gilbert <floppym@gentoo.org>
Sun, 5 Nov 2017 21:52:14 +0000 (16:52 -0500)
committerMike Gilbert <floppym@gentoo.org>
Sun, 5 Nov 2017 21:56:49 +0000 (16:56 -0500)
Closes: https://bugs.gentoo.org/636654

eclass/meson.eclass

index be1055a3fe57650ecb4f46f3b0e16d09dbc584f1..2c943dd6ae27b151993f5e3ac8f45e5d655959b5 100644 (file)
@@ -103,12 +103,13 @@ _meson_create_cross_file() {
        # system roughly corresponds to uname -s (lowercase)
        local system=unknown
        case ${CHOST} in
-               *-aix*)     system=aix ;;
-               *-cygwin*)  system=cygwin ;;
-               *-darwin*)  system=darwin ;;
-               *-freebsd*) system=freebsd ;;
-               *-linux*)   system=linux ;;
-               *-solaris*) system=sunos ;;
+               *-aix*)          system=aix ;;
+               *-cygwin*)       system=cygwin ;;
+               *-darwin*)       system=darwin ;;
+               *-freebsd*)      system=freebsd ;;
+               *-linux*)        system=linux ;;
+               mingw*|*-mingw*) system=windows ;;
+               *-solaris*)      system=sunos ;;
        esac
 
        local cpu_family=$(tc-arch)