[Lldb-commits] [PATCH] D81300: Enable -DLLDB_ENERGY when compiling against an internal SDK

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 8 11:02:54 PDT 2020


JDevlieghere added inline comments.


================
Comment at: lldb/tools/debugserver/source/CMakeLists.txt:132
 
+if($ENV{SDKROOT} MATCHES ".Internal.sdk$")
+  message(STATUS "LLDB debugserver energy support is enabled")
----------------
I guess this should be guarded by `if(APPLE)`? 


================
Comment at: lldb/tools/debugserver/source/CMakeLists.txt:135
+  add_definitions(-DLLDB_ENERGY)
+  set(ENERGY_LIBRARY -lpmenergy -lpmsample)
+else()
----------------
Can we not use the `find_library` patter that we use for things like springboard above?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81300/new/

https://reviews.llvm.org/D81300





More information about the lldb-commits mailing list