summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>2025-03-31 14:15:34 +0300
committerKhem Raj <raj.khem@gmail.com>2025-03-31 07:02:51 -0700
commit11b169e210c3198d95ce5e9c95da4abfe5d8e39a (patch)
treedd74f12829f8f0f52994066cbda20c4a34603f21
parent892380133becb17d95ffae95de1df025c9d72088 (diff)
downloadmeta-clang-11b169e210c3198d95ce5e9c95da4abfe5d8e39a.tar.gz
layer.conf: disable conflicting LLVM PACKAGECONFIG options
The LLVM package in OE-Core got optional support for building libclc and SPIRV-LLVM-Translator. However this also means that llvm-native also install clang binaries into the sysroot. In order to remove a conflict with the clang recipe from meta-clang forcibly disable PACKAGECONFIG options causing conflict. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
-rw-r--r--conf/layer.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf/layer.conf b/conf/layer.conf
index eea26f1..065a1c9 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -30,6 +30,12 @@ PREFERRED_PROVIDER_libgcc-initial = "libgcc-initial"
30PREFERRED_PROVIDER_libunwind = "${@bb.utils.contains_any("TC_CXX_RUNTIME", "llvm android", "libcxx", "libunwind", d)}" 30PREFERRED_PROVIDER_libunwind = "${@bb.utils.contains_any("TC_CXX_RUNTIME", "llvm android", "libcxx", "libunwind", d)}"
31INHERIT += "clang" 31INHERIT += "clang"
32 32
33# libclc and SPIRV-LLVM-Trasnaltor from OE-Core/llvm conflict with Clang from
34# meta-clang
35PACKAGECONFIG:remove:pn-llvm = "libclc spirv-llvm-translator"
36PACKAGECONFIG:remove:pn-llvm-native = "libclc spirv-llvm-translator"
37PACKAGECONFIG:remove:pn-nativesdk-llvm = "libclc spirv-llvm-translator"
38
33# Do not include clang in SDK unless user wants to 39# Do not include clang in SDK unless user wants to
34CLANGSDK ??= "0" 40CLANGSDK ??= "0"
35 41