Skip to content

Commit

Permalink
libclc: Fix build errors
Browse files Browse the repository at this point in the history
Use LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR to define location of all
llvm tools needed for build

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed May 29, 2024
1 parent c5d3a1b commit 5397003
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions recipes-devtools/clang/libclc_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,11 @@ DEPENDS += "qemu-native clang spirv-tools spirv-llvm-translator spirv-llvm-trans

OECMAKE_SOURCEPATH = "${S}/libclc"

EXTRA_OECMAKE += " \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \
EXTRA_OECMAKE += "\
-DLIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR=${STAGING_BINDIR_NATIVE} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \
-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 \
-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 \
"
-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 5397003

Please sign in to comment.