[Bug 42514] New: lldb fails to configure when signing adhoc

Bug ID 42514
Summary lldb fails to configure when signing adhoc
Product lldb
Version unspecified
Hardware PC
OS All
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter jeremyhu@apple.com
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

In MacPorts, we build lldb using -DLLDB_CODESIGN_IDENTITY=- and have our users
sign it themselves after it is installed.

With the update to r365158, lldb is failing to configure with:

-- lldb debugserver:
CMake Error at tools/lldb/tools/debugserver/source/CMakeLists.txt:155
  Certificate for debugserver not found.  Run scripts/macos-setup-codesign.sh
  or use the system debugserver passing -DLLDB_USE_SYSTEM_DEBUGSERVER=ON to

This regressed in:

commit cb1c23cd40cea52c0816004dfa4fe1f81ce93deb
Author: Davide Italiano <[davide@freebsd.org](mailto:davide@freebsd.org)>

    [CMake] Check that a certificate for lldb is present at build time.

    Reviewers: JDevlieghere, sgraenitz, aprantl, friss

    Subscribers: mgorny, lldb-commits

    Tags: #lldb

    Differential Revision: [https://reviews.llvm.org/D63745](https://reviews.llvm.org/D63745)

    git-svn-id: [https://llvm.org/svn/llvm-project/lldb/trunk@364334](https://llvm.org/svn/llvm-project/lldb/trunk@364334)

The check added there needs to take adhoc signing into consideration.

Jeremy Huddleston Sequoia changed bug 42514