diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-05-28 13:12:12 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-05-28 17:29:31 -0700 |
commit | 539700354a4236c6bf233eb5e7ff00b995547de9 (patch) | |
tree | 19593ea87ab165657ff265ff3ddd4604a0890132 | |
parent | c5d3a1b7d0000215b25c9fa517aff177b1483b34 (diff) | |
download | meta-clang-539700354a4236c6bf233eb5e7ff00b995547de9.tar.gz |
libclc: Fix build errors
Use LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR to define location of all
llvm tools needed for build
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/clang/libclc_git.bb | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/recipes-devtools/clang/libclc_git.bb b/recipes-devtools/clang/libclc_git.bb index 2c4ed0a..2315ab6 100644 --- a/recipes-devtools/clang/libclc_git.bb +++ b/recipes-devtools/clang/libclc_git.bb | |||
@@ -15,19 +15,11 @@ DEPENDS += "qemu-native clang spirv-tools spirv-llvm-translator spirv-llvm-trans | |||
15 | 15 | ||
16 | OECMAKE_SOURCEPATH = "${S}/libclc" | 16 | OECMAKE_SOURCEPATH = "${S}/libclc" |
17 | 17 | ||
18 | EXTRA_OECMAKE += " \ | 18 | EXTRA_OECMAKE += "\ |
19 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | 19 | -DLIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR=${STAGING_BINDIR_NATIVE} \ |
20 | -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \ | 20 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
21 | -DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \ | 21 | -DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \ |
22 | -DLLVM_CLANG=${STAGING_BINDIR_NATIVE}/clang \ | 22 | -DCMAKE_POSITION_INDEPENDENT_CODE=ON" |
23 | -DLLVM_AS=${STAGING_BINDIR_NATIVE}/llvm-as \ | ||
24 | -DLLVM_LINK=${STAGING_BINDIR_NATIVE}/llvm-link \ | ||
25 | -DLLVM_OPT=${STAGING_BINDIR_NATIVE}/opt \ | ||
26 | -DLLVM_SPIRV=${STAGING_BINDIR_NATIVE}/llvm-spirv \ | ||
27 | -Dclc_comp_in:FILEPATH=${OECMAKE_SOURCEPATH}/cmake/CMakeCLCCompiler.cmake.in \ | ||
28 | -Dll_comp_in:FILEPATH=${OECMAKE_SOURCEPATH}/cmake/CMakeLLAsmCompiler.cmake.in \ | ||
29 | -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ | ||
30 | " | ||
31 | 23 | ||
32 | do_configure:prepend () { | 24 | do_configure:prepend () { |
33 | # Write out a qemu wrapper that will be used by cmake | 25 | # Write out a qemu wrapper that will be used by cmake |