summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/meson.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-recipe/meson.bbclass')
-rw-r--r--meta/classes-recipe/meson.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
index 03fa2c06eb..31675cf42d 100644
--- a/meta/classes-recipe/meson.bbclass
+++ b/meta/classes-recipe/meson.bbclass
@@ -64,10 +64,13 @@ addtask write_config before do_configure
64do_write_config[vardeps] += "CC CXX AR NM STRIP READELF OBJCOPY CFLAGS CXXFLAGS LDFLAGS RUSTC RUSTFLAGS EXEWRAPPER_ENABLED" 64do_write_config[vardeps] += "CC CXX AR NM STRIP READELF OBJCOPY CFLAGS CXXFLAGS LDFLAGS RUSTC RUSTFLAGS EXEWRAPPER_ENABLED"
65do_write_config() { 65do_write_config() {
66 # This needs to be Py to split the args into single-element lists 66 # This needs to be Py to split the args into single-element lists
67 # The generated compile_commands.json file can be used by external IDEs
68 # which do not know the $PATH set-up by bitbake. They need the absolute
69 # compiler paths.
67 cat >${WORKDIR}/meson.cross <<EOF 70 cat >${WORKDIR}/meson.cross <<EOF
68[binaries] 71[binaries]
69c = ${@meson_array('CC', d)} 72c = ${@meson_array_abspath('CC', d)}
70cpp = ${@meson_array('CXX', d)} 73cpp = ${@meson_array_abspath('CXX', d)}
71cython = 'cython3' 74cython = 'cython3'
72ar = ${@meson_array('AR', d)} 75ar = ${@meson_array('AR', d)}
73nm = ${@meson_array('NM', d)} 76nm = ${@meson_array('NM', d)}