1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/libclc/libclc.conf
3 # Copyright (C) 2009 - 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if atstage cross; then
13 copy_function create_cmake_toolchain_file _create_cmake_toolchain_file
15 create_cmake_toolchain_file() {
16 _create_cmake_toolchain_file | sed '/CMAKE_FIND_ROOT_PATH /d'
19 var_append cmakeopt " " '-DLIBCLC_TARGETS_TO_BUILD="spirv-mesa3d-\;spirv64-mesa3d-"'
21 var_append GCC_WRAPPER_FILTER '|' "sed 's,$root/TOOLCHAIN.*libLLVM\(.*\)\.[as].*,-lLLVM\1,g'"
24 [ "${libdir##*/lib}" ] && var_append cmakeopt " " "-DLLVM_LIBDIR_SUFFIX=${libdir##*/lib}"
25 var_append cmakeopt " " "-DBUILD_SHARED_LIBS=ON"