package/llvm-project: enable clang python bindings

It should be noted that because the python bindings have wrong default
include dirs, they are useless if the includes are not provided
externally.

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
Raphaël Mélotte
2025-08-01 15:07:14 +00:00
committed by Romain Naour
parent 70043d9e9a
commit 96e6d7092c

View File

@@ -109,6 +109,10 @@ CLANG_CONF_OPTS += -DLLVM_LINK_LLVM_DYLIB=ON
HOST_CLANG_CONF_OPTS += -DLLVM_DYLIB_COMPONENTS=all
CLANG_CONF_OPTS += -DLLVM_DYLIB_COMPONENTS=all
# host-python3 is a permanent dependency of clang, so we can build the
# python bindings unconditionally:
HOST_CLANG_CONF_OPTS += -DCLANG_PYTHON_BINDINGS_VERSIONS=$(PYTHON3_VERSION_MAJOR)
# Help host-clang to find our external toolchain, use a relative path from the clang
# installation directory to the external toolchain installation directory in order to
# not hardcode the toolchain absolute path.