1 |
commit: f4ea3e88f050277653eef242be707079ca5ad03d |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 5 21:52:14 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 5 21:56:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4ea3e88 |
7 |
|
8 |
meson.eclass: set system=windows for mingw cross-compiles |
9 |
|
10 |
Closes: https://bugs.gentoo.org/636654 |
11 |
|
12 |
eclass/meson.eclass | 13 +++++++------ |
13 |
1 file changed, 7 insertions(+), 6 deletions(-) |
14 |
|
15 |
diff --git a/eclass/meson.eclass b/eclass/meson.eclass |
16 |
index be1055a3fe5..2c943dd6ae2 100644 |
17 |
--- a/eclass/meson.eclass |
18 |
+++ b/eclass/meson.eclass |
19 |
@@ -103,12 +103,13 @@ _meson_create_cross_file() { |
20 |
# system roughly corresponds to uname -s (lowercase) |
21 |
local system=unknown |
22 |
case ${CHOST} in |
23 |
- *-aix*) system=aix ;; |
24 |
- *-cygwin*) system=cygwin ;; |
25 |
- *-darwin*) system=darwin ;; |
26 |
- *-freebsd*) system=freebsd ;; |
27 |
- *-linux*) system=linux ;; |
28 |
- *-solaris*) system=sunos ;; |
29 |
+ *-aix*) system=aix ;; |
30 |
+ *-cygwin*) system=cygwin ;; |
31 |
+ *-darwin*) system=darwin ;; |
32 |
+ *-freebsd*) system=freebsd ;; |
33 |
+ *-linux*) system=linux ;; |
34 |
+ mingw*|*-mingw*) system=windows ;; |
35 |
+ *-solaris*) system=sunos ;; |
36 |
esac |
37 |
|
38 |
local cpu_family=$(tc-arch) |