diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2016-02-16 23:52:18 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2016-02-16 23:52:18 +0000 |
commit | b68464eb7825a83fa8d3cb867adfd7339a255c45 (patch) | |
tree | dccfa09dea4ae62a863edf0c9a2951791f65c363 /llvm/lib/ExecutionEngine | |
parent | 94c6566055b856c9580a2b27bf4dd3aa8ac61482 (diff) | |
download | bcm5719-llvm-b68464eb7825a83fa8d3cb867adfd7339a255c45.tar.gz bcm5719-llvm-b68464eb7825a83fa8d3cb867adfd7339a255c45.zip |
Fix build LLVM with -D LLVM_USE_INTEL_JITEVENTS:BOOL=ON on Windows
Differential Revision: http://reviews.llvm.org/D16940
llvm-svn: 261033
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt | 11 | ||||
-rw-r--r-- | llvm/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt b/llvm/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt index 331d2141b0e..65f2a2f51f9 100644 --- a/llvm/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt +++ b/llvm/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt @@ -1,8 +1,17 @@ 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) diff --git a/llvm/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt b/llvm/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt index afea3ecccda..8584500d64a 100644 --- a/llvm/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt +++ b/llvm/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt @@ -21,4 +21,4 @@ type = OptionalLibrary name = IntelJITEvents parent = ExecutionEngine -required_libraries = Core DebugInfoDWARF Support Object ExecutionEngine +required_libraries = CodeGen Core DebugInfoDWARF Support Object ExecutionEngine |