Skip to content
Snippets Groups Projects
Unverified Commit 629c69d3 authored by Seth R. Johnson's avatar Seth R. Johnson Committed by GitHub
Browse files

Automatically run LLDB codesign script on mac (#15169)

Newer versions of LLVM provide a one-line command to set up LLDB code
signing. Now the build will abort only if this command fails.

https://lldb.llvm.org/resources/build.html#code-signing-on-macos
parent 0ea6bab9
No related branches found
No related tags found
No related merge requests found
...@@ -162,11 +162,18 @@ def check_darwin_lldb_codesign_requirement(self): ...@@ -162,11 +162,18 @@ def check_darwin_lldb_codesign_requirement(self):
llvm_check_file) llvm_check_file)
except ProcessError: except ProcessError:
explanation = ('The "lldb_codesign" identity must be available' # Newer LLVM versions have a simple script that sets up
' to build LLVM with LLDB. See https://lldb.llvm' # automatically
'.org/resources/build.html#code-signing-on-macos' setup = Executable("./lldb/scripts/macos-setup-codesign.sh")
'for details on how to create this identity.') try:
raise RuntimeError(explanation) setup()
except Exception:
raise RuntimeError(
'The "lldb_codesign" identity must be available to build '
'LLVM with LLDB. See https://lldb.llvm.org/resources/'
'build.html#code-signing-on-macos for details on how to '
'create this identity.'
)
def setup_build_environment(self, env): def setup_build_environment(self, env):
env.append_flags('CXXFLAGS', self.compiler.cxx11_flag) env.append_flags('CXXFLAGS', self.compiler.cxx11_flag)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment