forked from OSchip/llvm-project
[CMake] Need to set WITH_LOCKDOWN on debugserver target
Turns out WITH_LOCKDOWN define changes the struct layout and constructor implementation for RNBSocket which is used in debugserver.cpp, so we need to make sure this is consistent. In the future we should change WITH_LOCKDOWN to be configured in a generated header, but for now we can just set it correctly. <rdar://problem/33900552> llvm-svn: 312666
This commit is contained in:
parent
a465362d77
commit
5226a2a6de
|
@ -149,6 +149,11 @@ if(NOT SKIP_DEBUGSERVER)
|
||||||
WITH_FBS
|
WITH_FBS
|
||||||
WITH_BKS
|
WITH_BKS
|
||||||
)
|
)
|
||||||
|
set_property(TARGET debugserver APPEND PROPERTY COMPILE_DEFINITIONS
|
||||||
|
WITH_LOCKDOWN
|
||||||
|
WITH_FBS
|
||||||
|
WITH_BKS
|
||||||
|
)
|
||||||
set_property(TARGET lldbDebugserverCommon APPEND PROPERTY COMPILE_FLAGS
|
set_property(TARGET lldbDebugserverCommon APPEND PROPERTY COMPILE_FLAGS
|
||||||
-F${CMAKE_OSX_SYSROOT}/System/Library/PrivateFrameworks
|
-F${CMAKE_OSX_SYSROOT}/System/Library/PrivateFrameworks
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,3 +17,22 @@ add_lldb_unittest(debugserverTests
|
||||||
LINK_COMPONENTS
|
LINK_COMPONENTS
|
||||||
Support
|
Support
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(IOS)
|
||||||
|
set_property(TARGET debugserverTests APPEND PROPERTY COMPILE_DEFINITIONS
|
||||||
|
WITH_LOCKDOWN
|
||||||
|
WITH_FBS
|
||||||
|
WITH_BKS
|
||||||
|
)
|
||||||
|
|
||||||
|
add_lldb_unittest(debugserverNonUITests
|
||||||
|
RNBSocketTest.cpp
|
||||||
|
debugserver_LogCallback.cpp
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
lldbDebugserverCommon_NonUI
|
||||||
|
lldbHost
|
||||||
|
LINK_COMPONENTS
|
||||||
|
Support
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue