1# Make sure that the path to libffi headers is on the command
2# line. That path can be a compiler's non-default path even when
3# FFI_INCLUDE_DIR was not used, because cmake has its own paths for
4# searching for headers (CMAKE_SYSTEM_INCLUDE_PATH, for instance):
5if( FFI_INCLUDE_PATH )
6  include_directories( ${FFI_INCLUDE_PATH} )
7endif()
8
9add_llvm_library(LLVMInterpreter
10  Execution.cpp
11  ExternalFunctions.cpp
12  Interpreter.cpp
13
14  DEPENDS
15  intrinsics_gen
16  )
17
18if( LLVM_ENABLE_FFI )
19  target_link_libraries( LLVMInterpreter PRIVATE ${FFI_LIBRARY_PATH} )
20endif()
21