[CMake] Add code signing for lldb-server on iOS

llvm-svn: 352388
This commit is contained in:
Stefan Granitz 2019-01-28 16:57:23 +00:00
parent 1f34e851ee
commit 61db81d8d0
1 changed files with 12 additions and 0 deletions

View File

@ -42,6 +42,18 @@ else()
list(APPEND LLDB_PLUGINS lldbPluginObjectFileELF)
endif()
if(IOS)
if(LLDB_CODESIGN_IDENTITY)
# Use explicit LLDB identity
set(LLVM_CODESIGNING_IDENTITY ${LLDB_CODESIGN_IDENTITY})
else()
# Use explicit LLVM identity or default to lldb_codesign if empty
if(NOT LLVM_CODESIGNING_IDENTITY)
set(LLVM_CODESIGNING_IDENTITY lldb_codesign)
endif()
endif()
endif()
add_lldb_tool(lldb-server
Acceptor.cpp
lldb-gdbserver.cpp