Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak Jan Kratochvil's "Simplify linked libraries: LLVMSupport -> LLVM"
change. Don't hardcode LLVM (or LLVMSupport), but use: `llvm-config --libs`
- Loading branch information
2d1a12e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit simpler than that. Change LLVM to LLVMSupport and it works.
2d1a12e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tedwoodward
The original patch made by Jan, seems to indicate that LLVMSupport isn't available in all build configurations:
"
commit 2484a37
Author: Jan Kratochvil jan.kratochvil@redhat.com
Date: Wed Jul 24 12:01:41 2019 +0200
"
His change was almost exactly opposite of what you are suggesting:
git diff 33cb214..2484a37 -- src/CMakeLists.txt
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 57466df..8ddc65a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -74,4 +74,4 @@ add_executable(lldb-mi
MIUtilVariant.cpp
)
-target_link_libraries(lldb-mi lldb LLVMSupport)
+target_link_libraries(lldb-mi lldb LLVM pthread)