diff options
Diffstat (limited to 'meta/recipes-devtools/meson/meson/0002-Make-CPU-family-warnings-fatal.patch')
-rw-r--r-- | meta/recipes-devtools/meson/meson/0002-Make-CPU-family-warnings-fatal.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/meson/meson/0002-Make-CPU-family-warnings-fatal.patch b/meta/recipes-devtools/meson/meson/0002-Make-CPU-family-warnings-fatal.patch new file mode 100644 index 0000000000..3b377351a2 --- /dev/null +++ b/meta/recipes-devtools/meson/meson/0002-Make-CPU-family-warnings-fatal.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 9681c5bdea6a67abf014d94a392ef42eea7df0cd Mon Sep 17 00:00:00 2001 | ||
2 | From: Ross Burton <ross.burton@intel.com> | ||
3 | Date: Tue, 3 Jul 2018 13:59:09 +0100 | ||
4 | Subject: [PATCH 2/3] Make CPU family warnings fatal | ||
5 | |||
6 | Upstream-Status: Inappropriate [OE specific] | ||
7 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
8 | --- | ||
9 | mesonbuild/environment.py | 4 ++-- | ||
10 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
11 | |||
12 | diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py | ||
13 | index 678d009..8b32892 100644 | ||
14 | --- a/mesonbuild/environment.py | ||
15 | +++ b/mesonbuild/environment.py | ||
16 | @@ -228,7 +228,7 @@ def detect_cpu_family(compilers): | ||
17 | # Add fixes here as bugs are reported. | ||
18 | |||
19 | if trial not in known_cpu_families: | ||
20 | - mlog.warning('Unknown CPU family %s, please report this at https://github.com/mesonbuild/meson/issues/new' % trial) | ||
21 | + raise EnvironmentException('Unknown CPU family %s, please report this at https://github.com/mesonbuild/meson/issues/new' % trial) | ||
22 | |||
23 | return trial | ||
24 | |||
25 | @@ -1043,7 +1043,7 @@ class CrossBuildInfo: | ||
26 | raise EnvironmentException('Malformed value in cross file variable %s.' % entry) | ||
27 | |||
28 | if entry == 'cpu_family' and res not in known_cpu_families: | ||
29 | - mlog.warning('Unknown CPU family %s, please report this at https://github.com/mesonbuild/meson/issues/new' % value) | ||
30 | + raise EnvironmentException('Unknown CPU family %s, please report this at https://github.com/mesonbuild/meson/issues/new' % trial) | ||
31 | |||
32 | if self.ok_type(res): | ||
33 | self.config[s][entry] = res | ||
34 | -- | ||
35 | 2.12.0 | ||
36 | |||