[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/mesa-libclc/mesa-libclc.desc [COPY] Copyright (C) 2026 The T2 SDE Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] Mesa pinned fork of the libclc OpenCL C library [T] A fork of LLVM's libclc at a known good state, providing the [T] spirv-mesa3d- targets and mesa-libclc.pc dropped from upstream [T] libclc, as used by Mesa's rusticl and CL-using drivers. [U] https://gitlab.freedesktop.org/karolherbst/mesa-libclc [A] University of Illinois/NCSA [A] Karol Herbst [M] Rene Rebe [R] - m68k nios2 [C] extra/development [F] OBJDIR CROSS [L] BSD MIT [V] 22.1.8.3 [P] X ?----5---9 127.402 [D] 3751dac80251a0c560c3bc4cf004a2d68d9243ffec6d3683a7faf683 mesa-libclc-22.1.8.3.tar.bz2 https://gitlab.freedesktop.org/karolherbst/mesa-libclc/-/archive/22.1.8.3/ var_append cmakeopt ' ' '-DCMAKE_CLC_COMPILER=$root/$prefix/bin/clang' if atstage cross; then var_append cmakeopt ' ' '-DCMAKE_CLC_COMPILER=$root/TOOLCHAIN/cross/bin/clang' copy_function create_cmake_toolchain_file _create_cmake_toolchain_file create_cmake_toolchain_file() { _create_cmake_toolchain_file | sed '/CMAKE_FIND_ROOT_PATH /d' } # use build machine LLVM tools from the cross toolchain var_append cmakeopt ' ' "-DLIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR=$root/TOOLCHAIN/cross/bin" var_append cmakeopt ' ' "-DLLVM_SPIRV=$root/TOOLCHAIN/cross/bin/llvm-spirv" fi var_append cmakeopt ' ' "-DLIBCLC_TARGETS_TO_BUILD='spirv-mesa3d-;spirv64-mesa3d-'" [ "${libdir##*/lib}" ] && var_append cmakeopt ' ' "-DLLVM_LIBDIR_SUFFIX=${libdir##*/lib}"