[Lldb-commits] [PATCH] D32866: Fix -DLLVM_BUILD_TESTS=ON lldb build

Jonathan Roelofs via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu May 4 10:02:25 PDT 2017


jroelofs updated this revision to Diff 97842.

https://reviews.llvm.org/D32866

Files:
  source/Core/CMakeLists.txt
  source/Host/CMakeLists.txt


Index: source/Host/CMakeLists.txt
===================================================================
--- source/Host/CMakeLists.txt
+++ source/Host/CMakeLists.txt
@@ -48,6 +48,7 @@
   add_host_subdirectory(common
     common/Editline.cpp
     )
+  list(APPEND EXTRA_LIBS edit)
 endif()
 
 add_host_subdirectory(posix
@@ -160,12 +161,12 @@
 endif()
 
 if (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
- set(EXTRA_LIBS kvm)
+ list(APPEND EXTRA_LIBS kvm)
 endif ()
 
 add_lldb_library(lldbHost
   ${HOST_SOURCES}
-  
+
   LINK_LIBS
     lldbCore
     lldbInterpreter
@@ -174,7 +175,8 @@
     lldbUtility
     ${LLDB_PLUGINS}
     ${EXTRA_LIBS}
-  
+
   LINK_COMPONENTS
     Support
   )
+
Index: source/Core/CMakeLists.txt
===================================================================
--- source/Core/CMakeLists.txt
+++ source/Core/CMakeLists.txt
@@ -1,3 +1,5 @@
+include(${LLDB_PROJECT_ROOT}/cmake/LLDBDependencies.cmake)
+
 add_lldb_library(lldbCore
   Address.cpp
   AddressRange.cpp
@@ -65,6 +67,7 @@
     lldbPluginCPlusPlusLanguage
     lldbPluginObjCLanguage
     lldbPluginObjectFileJIT
+    ${LLDB_SYSTEM_LIBS}
 
   LINK_COMPONENTS
     Support


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32866.97842.patch
Type: text/x-patch
Size: 1149 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170504/15178f09/attachment.bin>


More information about the lldb-commits mailing list