mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
mesa: Pass needed clang flags via BINDGEN_EXTRA_CLANG_ARGS
This is needed for clang to find the c++ headers when invoked via bindgen Fixes | /mnt/b/yoe/master/sources/poky/build/tmp/work/cortexa57-poky-linux/mesa/25.0.2/recipe-sysroot/usr/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: 'cassert' file not found | Unable to generate bindings: clang diagnosed error: /mnt/b/yoe/master/sources/poky/build/tmp/work/cortexa57-poky-linux/mesa/25.0.2/recipe-sysroot/usr/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: 'cassert' file not found | (From OE-Core rev: 6d9f95a25dd32871e8c07ec3295a216236b3a7e0) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5b7aaa505f
commit
67b810139f
|
@ -265,6 +265,10 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \
|
||||||
mesa-vdpau-drivers mesa-tools \
|
mesa-vdpau-drivers mesa-tools \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
do_compile:prepend:class-target() {
|
||||||
|
export BINDGEN_EXTRA_CLANG_ARGS="${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}"
|
||||||
|
}
|
||||||
|
|
||||||
do_install:append () {
|
do_install:append () {
|
||||||
# libwayland-egl has been moved to wayland 1.15+
|
# libwayland-egl has been moved to wayland 1.15+
|
||||||
rm -f ${D}${libdir}/libwayland-egl*
|
rm -f ${D}${libdir}/libwayland-egl*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user