Skip to content

Commit

Permalink
libclc: Add toolchain component paths
Browse files Browse the repository at this point in the history
cmake complains otherwise
toolchain incomplete!

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed May 30, 2024
1 parent 3c4b09c commit ce7d354
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions recipes-devtools/clang/libclc_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@ DEPENDS += "qemu-native clang spirv-tools spirv-llvm-translator spirv-llvm-trans
OECMAKE_SOURCEPATH = "${S}/libclc"

EXTRA_OECMAKE += "\
-DLIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR=${STAGING_BINDIR_NATIVE} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
-DLIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR=${STAGING_BINDIR_NATIVE} \
-DLLVM_CLANG=${STAGING_BINDIR_NATIVE}/clang \
-DLLVM_AS=${STAGING_BINDIR_NATIVE}/llvm-as \
-DLLVM_LINK=${STAGING_BINDIR_NATIVE}/llvm-link \
-DLLVM_OPT=${STAGING_BINDIR_NATIVE}/opt \
-DLLVM_SPIRV=${STAGING_BINDIR_NATIVE}/llvm-spirv \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \
-Dclc_comp_in:FILEPATH=${OECMAKE_SOURCEPATH}/cmake/CMakeCLCCompiler.cmake.in \
-Dll_comp_in:FILEPATH=${OECMAKE_SOURCEPATH}/cmake/CMakeLLAsmCompiler.cmake.in \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON"

do_configure:prepend () {
# Write out a qemu wrapper that will be used by cmake
Expand Down

0 comments on commit ce7d354

Please sign in to comment.