summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/bcc/bcc/0001-Allow-to-build-with-OE-LLVM-cross-compiled-package.patch
blob: 7b09df6ec8f783dc7ed254f33255952d51af9913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From cb13627f25a7af1b54a395eb59e5d7f7786e609d Mon Sep 17 00:00:00 2001
From: Sumit Garg <sumit.garg@linaro.org>
Date: Fri, 14 Feb 2020 07:40:11 +0000
Subject: [PATCH] Allow to build with OE LLVM cross compiled package

The default LLVM cmake package requires all libraries, headers and tools
to be present but in case of cross compilation, OE only provides
target specific libraries and headers and requires native llvm tools.

So instead of looking for a complete llvm package, look for libraries and
headers which are installed in target sysroot-recipe path.

Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
---
 CMakeLists.txt | 2 --
 1 file changed, 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f1916b55..f16d84c3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,8 +39,6 @@ endif()
 if(NOT PYTHON_ONLY AND ENABLE_CLANG_JIT)
 find_package(BISON)
 find_package(FLEX)
-find_package(LLVM REQUIRED CONFIG)
-message(STATUS "Found LLVM: ${LLVM_INCLUDE_DIRS} ${LLVM_PACKAGE_VERSION}")
 find_package(LibElf REQUIRED)
 
 if(CLANG_DIR)
-- 
2.17.1