diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-12 13:49:04 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-13 23:28:31 +0100 |
| commit | ebb0f1e390814a2ccd647558cca7ba22037cf373 (patch) | |
| tree | ade72f4d34c732f3f1825b6504ac618c2081c7be /meta | |
| parent | a5de8f412c5bd5ddfc9b28533f1517da50b31f2c (diff) | |
| download | poky-ebb0f1e390814a2ccd647558cca7ba22037cf373.tar.gz | |
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>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-devtools/meson/meson_1.4.0.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/meson/meson_1.4.0.bb b/meta/recipes-devtools/meson/meson_1.4.0.bb index 5db100ff1c..a0c2ee633a 100644 --- a/meta/recipes-devtools/meson/meson_1.4.0.bb +++ b/meta/recipes-devtools/meson/meson_1.4.0.bb | |||
| @@ -47,7 +47,7 @@ inherit meson-routines | |||
| 47 | # them. | 47 | # them. |
| 48 | def var_list2str(var, d): | 48 | def var_list2str(var, d): |
| 49 | items = d.getVar(var).split() | 49 | items = d.getVar(var).split() |
| 50 | return items[0] if len(items) == 1 else ', '.join(repr(s) for s in items) | 50 | return repr(items[0]) if len(items) == 1 else ', '.join(repr(s) for s in items) |
| 51 | 51 | ||
| 52 | def generate_native_link_template(d): | 52 | def generate_native_link_template(d): |
| 53 | val = ['-L@{OECORE_NATIVE_SYSROOT}${libdir_native}', | 53 | val = ['-L@{OECORE_NATIVE_SYSROOT}${libdir_native}', |
