Skip to contentSkip to conversation

meson.bbclass: add cython binary to cross/native toolchain config

PATCH New Jack Mitchell 1 participant 1 message Jun 9, 2022 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson.bbclass: add cython binary to cross/native toolchain config

This allows building Cython based Python modules with the native meson support which has been present since meson version 0.59.

https://mesonbuild.com/Cython.html

---
 meta/classes/meson.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/meson.bbclass +2 -0
index b265e6659f..546cd0476f 100644
@@ -59,6 +59,7 @@ do_write_config() {
 [binaries]
 c = ${@meson_array('CC', d)}
 cpp = ${@meson_array('CXX', d)}
+cython = 'cython3'
 ar = ${@meson_array('AR', d)}
 nm = ${@meson_array('NM', d)}
 strip = ${@meson_array('STRIP', d)}
@@ -98,6 +99,7 @@ EOF
 [binaries]
 c = ${@meson_array('BUILD_CC', d)}
 cpp = ${@meson_array('BUILD_CXX', d)}
+cython = 'cython3'
 ar = ${@meson_array('BUILD_AR', d)}
 nm = ${@meson_array('BUILD_NM', d)}
 strip = ${@meson_array('BUILD_STRIP', d)}
Signature · 1 line
2.36.1