In order to use this recipe with zeus, link to llvm
based on LLVMVERSION.

In zeus release, LLVMVERSION points to 9.x.

Signed-off-by: Naveen Saini <[email protected]>
---
 .../recipes-opencl/igc/intel-graphics-compiler_1.0.3771.bb    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.3771.bb
 
b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.3771.bb
index 6cfa0b6d..93484c47 100644
--- 
a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.3771.bb
+++ 
b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.3771.bb
@@ -25,7 +25,9 @@ DEPENDS_append_class-target = " clang-cross-x86_64"
 
 RDEPENDS_${PN} += "opencl-clang"
 
-EXTRA_OECMAKE = "-DIGC_PREFERRED_LLVM_VERSION=10.0.0 
-DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3"
+LLVM_COMPAT_VER = "${@bb.utils.contains('LLVMVERSION', '9.0.1', '9.0.0', 
'10.0.0', d)}"
+
+EXTRA_OECMAKE = "-DIGC_PREFERRED_LLVM_VERSION=${LLVM_COMPAT_VER} 
-DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3"
 
 BBCLASSEXTEND = "native nativesdk"
 
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#6513): 
https://lists.yoctoproject.org/g/meta-intel/message/6513
Mute This Topic: https://lists.yoctoproject.org/mt/73235529/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to