[PATCH] Fix build if LLVM_USE_INTEL_JITEVENTS is ON.
Aleksey Bader
aleksey.bader at mail.ru
Thu Jul 3 08:53:40 PDT 2014
Hi,
Attached patch fixes LLVM build in case we use CMake with enabled
LLVM_USE_INTEL_JITEVENTS variable and GCC compiler.
The problem is that IntelJITEvents library has unresolved symbols
defined in DebugInfo library and it must be listed before DebugInfo,
otherwise GCC can't find those symbols.
Thanks,
Alexey
-------------- next part --------------
diff --git tools/lli/CMakeLists.txt tools/lli/CMakeLists.txt
index 731b61a..dd87995 100644
--- tools/lli/CMakeLists.txt
+++ tools/lli/CMakeLists.txt
@@ -24,8 +24,8 @@ endif( LLVM_USE_OPROFILE )
if( LLVM_USE_INTEL_JITEVENTS )
set(LLVM_LINK_COMPONENTS
${LLVM_LINK_COMPONENTS}
- DebugInfo
IntelJITEvents
+ DebugInfo
Object
)
endif( LLVM_USE_INTEL_JITEVENTS )
diff --git tools/llvm-jitlistener/CMakeLists.txt tools/llvm-jitlistener/CMakeLists.txt
index c9704fb..f7ef0ab 100644
--- tools/llvm-jitlistener/CMakeLists.txt
+++ tools/llvm-jitlistener/CMakeLists.txt
@@ -6,8 +6,8 @@ include_directories( ${LLVM_INTEL_JITEVENTS_INCDIR} )
set(LLVM_LINK_COMPONENTS
asmparser
bitreader
- debuginfo
inteljitevents
+ debuginfo
interpreter
irreader
jit
diff --git unittests/ExecutionEngine/JIT/CMakeLists.txt unittests/ExecutionEngine/JIT/CMakeLists.txt
index 72c1df7..f769c7e 100644
--- unittests/ExecutionEngine/JIT/CMakeLists.txt
+++ unittests/ExecutionEngine/JIT/CMakeLists.txt
@@ -22,8 +22,8 @@ if( LLVM_USE_INTEL_JITEVENTS )
)
set(LLVM_LINK_COMPONENTS
${LLVM_LINK_COMPONENTS}
- DebugInfo
IntelJITEvents
+ DebugInfo
Object
)
endif( LLVM_USE_INTEL_JITEVENTS )
More information about the llvm-commits
mailing list