Skip to content

Commit 60c07fd

Browse files
committed
Use CMAKE_OSX_SYSROOT instead of the environment variable SYSROOT
to detect energy support in debugserver. The way that Swift build-script is invoked the former may be overridden manually. <rdar://problem/63840635>
1 parent 1b18391 commit 60c07fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/tools/debugserver/source/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ if(LLDB_USE_ENTITLEMENTS)
129129
endif()
130130
endif()
131131

132-
if($ENV{SDKROOT} MATCHES ".Internal.sdk$")
132+
if(${CMAKE_OSX_SYSROOT} MATCHES ".Internal.sdk$")
133133
message(STATUS "LLDB debugserver energy support is enabled")
134134
add_definitions(-DLLDB_ENERGY)
135135
set(ENERGY_LIBRARY -lpmenergy -lpmsample)

0 commit comments

Comments
 (0)