@@ -12,7 +12,7 @@ DEPENDS = "libffi libxml2 zlib zstd libedit ninja-native llvm-native"
RDEPENDS:${PN}:append:class-target = " ncurses-terminfo"
-inherit cmake pkgconfig
+inherit cmake pkgconfig multilib_header
# could be 'rcX' or 'git' or empty ( for release )
VER_SUFFIX = ""
@@ -155,6 +155,8 @@ do_install() {
# Try to clean up datadir if it is empty, but don't fail if there are
# libclc files there
rmdir ${D}${datadir} || true
+
+ oe_multilib_header llvm/Config/llvm-config.h
}
do_install:append:class-native() {
fix the issue that: | file /usr/include/llvm/Config/llvm-config.h conflicts between attempted installs of lib32-llvm-dev-20.1.2-r0.core2_32 and llvm-dev-20.1.2-r0.core2_64 reproduce steps: 1. Add in local.conf the following lines: MACHINE ?= "qemux86-64" require conf/multilib.conf MULTILIBS ?= "multilib:lib32" DEFAULTTUNE:virtclass-multilib-lib32 ?= "core2-32" 2. add lib32-llvm-dev llvm-dev to core-image-minimal.bb IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL} lib32-llvm-dev llvm-dev" 3. $ bitbake core-image-minimal Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com> --- meta/recipes-devtools/llvm/llvm_20.1.2.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)