mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
meson: Fix native meson config
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. (From OE-Core rev: 7c2b573e6cbe518f54ea5c3539fc91ed63b80ebf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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}',
|
||||
|
||||
Reference in New Issue
Block a user