From cb13627f25a7af1b54a395eb59e5d7f7786e609d Mon Sep 17 00:00:00 2001 From: Sumit Garg 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 --- 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