summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/meson.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass
index 06034e8b47..e9628033c6 100644
--- a/meta/classes/meson.bbclass
+++ b/meta/classes/meson.bbclass
@@ -164,7 +164,8 @@ meson_do_configure_prepend_class-native() {
164python meson_do_qa_configure() { 164python meson_do_qa_configure() {
165 import re 165 import re
166 warn_re = re.compile(r"^WARNING: Cross property (.+) is using default value (.+)$", re.MULTILINE) 166 warn_re = re.compile(r"^WARNING: Cross property (.+) is using default value (.+)$", re.MULTILINE)
167 log = open(d.expand("${B}/meson-logs/meson-log.txt")).read() 167 with open(d.expand("${B}/meson-logs/meson-log.txt")) as logfile:
168 log = logfile.read()
168 for (prop, value) in warn_re.findall(log): 169 for (prop, value) in warn_re.findall(log):
169 bb.warn("Meson cross property %s used without explicit assignment, defaulting to %s" % (prop, value)) 170 bb.warn("Meson cross property %s used without explicit assignment, defaulting to %s" % (prop, value))
170} 171}