[meta-intel] [PATCH 3/4] intel-graphics-compiler: build for native as well

Anuj Mittal anuj.mittal at intel.com
Mon Aug 5 21:48:30 PDT 2019


And use LLD for native builds to remain in sync with meta-clang.

Signed-off-by: Anuj Mittal <anuj.mittal at intel.com>
---
 .../recipes-opencl/igc/intel-graphics-compiler_1.0.6.bb    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.6.bb b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.6.bb
index f64b97fd..5648b674 100644
--- a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.6.bb
+++ b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.6.bb
@@ -21,7 +21,12 @@ inherit cmake
 COMPATIBLE_HOST = '(x86_64).*-linux'
 COMPATIBLE_HOST_libc-musl = "null"
 
-DEPENDS_class-target = " flex-native bison-native clang clang-cross-x86_64"
+DEPENDS += " flex-native bison-native clang opencl-clang"
+DEPENDS_append_class-target = " clang-cross-x86_64"
 
 EXTRA_OECMAKE = "-DIGC_PREFERRED_LLVM_VERSION=8.0.0 -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python2"
 EXTRA_OECMAKE += "-DCOMMON_CLANG_LIBRARY_NAME=common_clang"
+
+LDFLAGS_append_class-native = " -fuse-ld=lld"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.21.0



More information about the meta-intel mailing list