]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
meson: Fix native meson config
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Jul 2024 12:49:04 +0000 (13:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 13 Jul 2024 22:28:28 +0000 (23:28 +0100)
When the optimization flags were reduced to a single option, a different
and clearly untested codepath was used where the output was unquoted. This
caused errors when testing meson in the SDK.

Use repr() in the single item case as per the multiple item case to correctly
quote the output and fix build failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/meson/meson_1.4.0.bb

index 5db100ff1cd1ae3d48143a682c18d7d64189fb91..a0c2ee633ae0c6c746e4ed0aaffd1360e954f3e8 100644 (file)
@@ -47,7 +47,7 @@ inherit meson-routines
 #   them.
 def var_list2str(var, d):
     items = d.getVar(var).split()
-    return items[0] if len(items) == 1 else ', '.join(repr(s) for s in items)
+    return repr(items[0]) if len(items) == 1 else ', '.join(repr(s) for s in items)
 
 def generate_native_link_template(d):
     val = ['-L@{OECORE_NATIVE_SYSROOT}${libdir_native}',