1234567891011121314151617181920212223242526272829303132 |
- From a1d6263590cc88211e48cc174347c8cc058c87c6 Mon Sep 17 00:00:00 2001
- From: Jun Yuan Tan <junyuan.tan@starfivetech.com>
- Date: Fri, 22 Oct 2021 11:45:59 +0800
- Subject: [PATCH] fix path to libffi
- FFI_LIBRARY_PATH is the full path to libffi so when building something that links to
- libLLVMInterpreter, we were looking for libffi in clang's recipe-sysroot instead of
- the recipe's sysroot.
- Rebased to LLVM 14.0.0 by Jun Yuan Tan
- Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
- Signed-off-by: Khem Raj <raj.khem@gmail.com>
- Signed-off-by: Jun Yuan Tan <junyuan.tan@starfivetech.com>
- ---
- llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- diff --git a/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt b/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt
- index 976219830d5e..9930e01559e9 100644
- --- a/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt
- +++ b/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt
- @@ -22,5 +22,5 @@ add_llvm_component_library(LLVMInterpreter
- )
-
- if( LLVM_ENABLE_FFI )
- - target_link_libraries( LLVMInterpreter PRIVATE ${FFI_LIBRARY_PATH} )
- + target_link_libraries( LLVMInterpreter PRIVATE ffi )
- endif()
- --
- 2.33.0
|