Differential Revision: http://reviews.llvm.org/D16940
llvm-svn: 261033
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
+if( HAVE_LIBDL )
+ set(LLVM_INTEL_JIT_LIBS ${CMAKE_DL_LIBS})
+endif()
+if( HAVE_LIBPTHREAD )
+ set(LLVM_INTEL_JIT_LIBS pthread ${LLVM_INTEL_JIT_LIBS})
+endif()
+
add_llvm_library(LLVMIntelJITEvents
IntelJITEventListener.cpp
jitprofiling.c
- LINK_LIBS pthread ${CMAKE_DL_LIBS}
+ LINK_LIBS ${LLVM_INTEL_JIT_LIBS}
)
+
+add_dependencies(LLVMIntelJITEvents LLVMCodeGen)
type = OptionalLibrary
name = IntelJITEvents
parent = ExecutionEngine
-required_libraries = Core DebugInfoDWARF Support Object ExecutionEngine
+required_libraries = CodeGen Core DebugInfoDWARF Support Object ExecutionEngine