[Lldb-commits] [PATCH] D101596: [debugserver] Use add_lldb_library
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 29 21:57:45 PDT 2021
JDevlieghere created this revision.
JDevlieghere added a reviewer: jasonmolenda.
Herald added a subscriber: mgorny.
JDevlieghere requested review of this revision.
Use `add_lldb_library` to ensure debugserver inherits all the defines set by llvm.
https://reviews.llvm.org/D101596
Files:
lldb/tools/debugserver/source/CMakeLists.txt
Index: lldb/tools/debugserver/source/CMakeLists.txt
===================================================================
--- lldb/tools/debugserver/source/CMakeLists.txt
+++ lldb/tools/debugserver/source/CMakeLists.txt
@@ -236,7 +236,12 @@
${generated_mach_interfaces}
${DEBUGSERVER_VERS_GENERATED_FILE})
-add_library(lldbDebugserverCommon ${lldbDebugserverCommonSources})
+# Tell LLVM not to complain about these source files.
+set(LLVM_OPTIONAL_SOURCES
+ ${lldbDebugserverCommonSources}
+ debugserver.cpp)
+
+add_lldb_library(lldbDebugserverCommon ${lldbDebugserverCommonSources})
set_target_properties(lldbDebugserverCommon PROPERTIES FOLDER "lldb libraries/debugserver")
target_link_libraries(lldbDebugserverCommon
@@ -259,7 +264,6 @@
set_property(TARGET lldbDebugserverCommon APPEND PROPERTY
COMPILE_DEFINITIONS HAVE_LIBCOMPRESSION)
endif()
-set(LLVM_OPTIONAL_SOURCES ${lldbDebugserverCommonSources})
add_lldb_tool(debugserver ADD_TO_FRAMEWORK
debugserver.cpp
LINK_LIBS lldbDebugserverCommon
@@ -315,7 +319,7 @@
-F${CMAKE_OSX_SYSROOT}/System/Library/PrivateFrameworks
)
- add_library(lldbDebugserverCommon_NonUI ${lldbDebugserverCommonSources})
+ add_lldb_library(lldbDebugserverCommon_NonUI ${lldbDebugserverCommonSources})
target_link_libraries(lldbDebugserverCommon_NonUI
INTERFACE ${COCOA_LIBRARY}
${CORE_FOUNDATION_LIBRARY}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101596.341770.patch
Type: text/x-patch
Size: 1438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210430/468f5683/attachment.bin>
More information about the lldb-commits
mailing list