[Lldb-commits] [PATCH] D81300: Enable -DLLDB_ENERGY when compiling against an internal SDK
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 5 13:30:02 PDT 2020
aprantl created this revision.
aprantl added reviewers: jasonmolenda, friss, JDevlieghere.
Herald added a subscriber: mgorny.
This brings over functionality from the xcodeproject that went missing during the CMake transition.
rdar://problem/63840635
https://reviews.llvm.org/D81300
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
@@ -129,6 +129,14 @@
endif()
endif()
+if($ENV{SDKROOT} MATCHES ".Internal.sdk$")
+ message(STATUS "LLDB debugserver energy support is enabled")
+ add_definitions(-DLLDB_ENERGY)
+ set(ENERGY_LIBRARY -lpmenergy -lpmsample)
+else()
+ message(STATUS "LLDB debugserver energy support is disabled")
+endif()
+
set(generated_mach_interfaces
${CMAKE_CURRENT_BINARY_DIR}/mach_exc.h
${CMAKE_CURRENT_BINARY_DIR}/mach_excServer.c
@@ -208,7 +216,8 @@
lldbDebugserverDarwin_DarwinLog
${FOUNDATION_LIBRARY}
${SECURITY_LIBRARY}
- ${LIBCOMPRESSION})
+ ${LIBCOMPRESSION}
+ ${ENERGY_LIBRARY})
if(HAVE_LIBCOMPRESSION)
set_property(TARGET lldbDebugserverCommon APPEND PROPERTY
COMPILE_DEFINITIONS HAVE_LIBCOMPRESSION)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81300.268925.patch
Type: text/x-patch
Size: 1085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200605/1d62cc8a/attachment.bin>
More information about the lldb-commits
mailing list