Use llvm_codesign from https://reviews.llvm.org/D54443 to sign lldb-server with entitlements.
Diff Detail
- Build Status
Buildable 24937 Build 24936: arc lint + arc unit
Event Timeline
debugserver was not that simple. For now only lldb-server as an example.
cmake/modules/AddLLDB.cmake | ||
---|---|---|
109 | I am parsing ENTITLEMENTS above and passing it on here explicitly. Had expected it to be passed along with ARG_UNPARSED_ARGUMENTS otherwise, but for some reason that didn't work. Is that the expected behaviour? |
tools/lldb-server/CMakeLists.txt | ||
---|---|---|
50 | TODO: Fix comment "debugserver" |
unset not necessary, fix comment, globally set LLVM_CODESIGNING_IDENTITY from LLDB_CODESIGN_IDENTITY
Why does lldb-server need to be signed? I was under the impression that on macOS lldb-server is not used? Or are we building it for testing and need sign it because of that?
In Xcode we have ad-hoc signing when targeting iOS and signing with entitlements in case of macOS for lldb-server.
+ LLDB.framework has lldb-server as a dependency there. Not sure if it's (really) necessary, though.
We do use lldb-server, though only in the platform mode, for remote testsuite running. The gdbserver mode doesn't do anything for a macOS hosted lldb-server, so lldb-server should not require any entitlements. But we do use it.
Ok, I will close this then. Added the remaining part of the patch to https://reviews.llvm.org/D54476
I am parsing ENTITLEMENTS above and passing it on here explicitly. Had expected it to be passed along with ARG_UNPARSED_ARGUMENTS otherwise, but for some reason that didn't work. Is that the expected behaviour?