mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 12:32:15 +02:00
meson: pass -target and -I to bindgen calls
In order to properly generate Rust bindings for the target systems, we
need to pass '-taget foo-linux-gnueabi' flags and a correct include
target include path (${STAGING_INCDIR}) to the bindgen. Add those
flags to the generated meson target file.
(From OE-Core rev: 40008d55c01681c60088e5b7defb0b8513a4ed1c)
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ea00dbbcf3
commit
581861b94b
@@ -93,6 +93,7 @@ cpp_link_args = ${@meson_array('LDFLAGS', d)}
|
||||
[properties]
|
||||
needs_exe_wrapper = true
|
||||
sys_root = '${STAGING_DIR_HOST}'
|
||||
bindgen_clang_arguments = ['-target', '${@d.getVar('RUST_HOST_SYS')}', '-I${STAGING_INCDIR}']
|
||||
|
||||
[host_machine]
|
||||
system = '${@meson_operating_system('HOST_OS', d)}'
|
||||
|
||||
Reference in New Issue
Block a user