From cd258cb76f4e51b982d00cea112a1c8a1ddaccab Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Tue, 17 Mar 2020 14:01:38 +0800 Subject: opencl-clang: upgrade 9.0.0 -> 10.0.0 Use a submitted patch instead to point to correct llvm-tblgen and include a fix to really link with all libs when LLVM libs are built statically. Signed-off-by: Anuj Mittal --- .../opencl-clang/files/link-with-all-libs.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 dynamic-layers/clang-layer/recipes-opencl/opencl-clang/files/link-with-all-libs.patch (limited to 'dynamic-layers/clang-layer/recipes-opencl/opencl-clang/files/link-with-all-libs.patch') diff --git a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/files/link-with-all-libs.patch b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/files/link-with-all-libs.patch new file mode 100644 index 00000000..bd6c9676 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/files/link-with-all-libs.patch @@ -0,0 +1,32 @@ +From cc0769fb72561f82976e40c5b7ea8bf07069c87a Mon Sep 17 00:00:00 2001 +From: Anuj Mittal +Date: Thu, 19 Mar 2020 16:30:07 +0800 +Subject: [PATCH] link to all libs + +LINK_COMPONENTS=all isn't working for static libs for out of tree builds. Use +LLVM_AVAILABLE_LIBS instead. Reported: + +https://github.com/intel/opencl-clang/issues/114 + +Upstream-Status: Pending + +Signed-off-by: Anuj Mittal +--- + CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4590a11..2ff9901 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -261,6 +261,7 @@ add_llvm_library(${TARGET_NAME} SHARED + clangLex + clangBasic + ${ADDITIONAL_LIBS} ++ ${LLVM_AVAILABLE_LIBS} + ) + + # Configure resource file on Windows +-- +2.25.1 + -- cgit v1.2.3-54-g00ecf