[PATCH] D16940: Fix build LLVM with -D LLVM_USE_INTEL_JITEVENTS:BOOL=ON on Windows

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 16 15:56:47 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL261033: Fix build LLVM with -D LLVM_USE_INTEL_JITEVENTS:BOOL=ON on Windows (authored by akaylor).

Changed prior to commit:
  http://reviews.llvm.org/D16940?vs=47712&id=48120#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D16940

Files:
  llvm/trunk/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt
  llvm/trunk/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt

Index: llvm/trunk/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt
===================================================================
--- llvm/trunk/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt
+++ llvm/trunk/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)
Index: llvm/trunk/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt
===================================================================
--- llvm/trunk/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt
+++ llvm/trunk/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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16940.48120.patch
Type: text/x-patch
Size: 1232 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160216/aa4a0f45/attachment.bin>


More information about the llvm-commits mailing list