2011-01-27 22:58:34 +00:00
|
|
|
# Make sure that the path to libffi headers is on the command
|
|
|
|
# line. That path can be a compiler's non-default path even when
|
|
|
|
# FFI_INCLUDE_DIR was not used, because cmake has its own paths for
|
|
|
|
# searching for headers (CMAKE_SYSTEM_INCLUDE_PATH, for instance):
|
|
|
|
if( FFI_INCLUDE_PATH )
|
2011-01-21 15:42:54 +00:00
|
|
|
include_directories( ${FFI_INCLUDE_PATH} )
|
|
|
|
endif()
|
|
|
|
|
2009-06-23 17:57:35 +00:00
|
|
|
add_llvm_library(LLVMInterpreter
|
2008-09-22 01:08:49 +00:00
|
|
|
Execution.cpp
|
|
|
|
ExternalFunctions.cpp
|
|
|
|
Interpreter.cpp
|
|
|
|
)
|
2011-01-21 15:42:54 +00:00
|
|
|
|
|
|
|
if( LLVM_ENABLE_FFI )
|
2015-03-23 20:03:57 +00:00
|
|
|
target_link_libraries( LLVMInterpreter PRIVATE ${FFI_LIBRARY_PATH} )
|
2011-01-21 15:42:54 +00:00
|
|
|
endif()
|
2012-06-24 13:32:01 +00:00
|
|
|
|
|
|
|
add_dependencies(LLVMInterpreter intrinsics_gen)
|