[Buildroot] [PATCH/next 2/5] package/llvm-project/libclc: add host variant

Daniel Lang dalang at gmx.at
Thu Apr 3 19:21:32 UTC 2025


Hello Bernd,

On 3/6/25 21:34, Bernd Kuhls wrote:
> Needed for mesa3d bump to 24.1.0.
>
> Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
> ---
>  package/llvm-project/libclc/libclc.mk | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/package/llvm-project/libclc/libclc.mk b/package/llvm-project/libclc/libclc.mk
> index 9f303d6d2f..cfa978a8ac 100644
> --- a/package/llvm-project/libclc/libclc.mk
> +++ b/package/llvm-project/libclc/libclc.mk
> @@ -11,6 +11,7 @@ LIBCLC_LICENSE = Apache-2.0 with exceptions or MIT
>  LIBCLC_LICENSE_FILES = LICENSE.TXT
>
>  LIBCLC_DEPENDENCIES = host-clang host-llvm host-spirv-llvm-translator
> +HOST_LIBCLC_DEPENDENCIES = host-clang host-llvm host-spirv-llvm-translator
>  LIBCLC_INSTALL_STAGING = YES
>
>  # CMAKE_*_COMPILER_FORCED=ON skips testing the tools and assumes
> @@ -39,4 +40,8 @@ LIBCLC_CONF_OPTS = \
>  	-DCMAKE_CXX_COMPILER="$(CMAKE_HOST_CXX_COMPILER)" \
>  	-DLLVM_CONFIG="$(HOST_DIR)/bin/llvm-config"
>
> +HOST_LIBCLC_CONF_OPTS = \
> +	-DLIBCLC_TARGETS_TO_BUILD=spirv64-mesa3d-

I haven't worked with libclc in a while but I'm not sure if we need to check whether the host
is 32bit and select spirv-mesa3d- as target instead.

Do you have any idea here?

> +
>  $(eval $(cmake-package))
> +$(eval $(host-cmake-package))



More information about the buildroot mailing list