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
This commit is contained in:
parent
0ea6bab984
commit
629c69d383
1 changed files with 12 additions and 5 deletions
|
@ -162,11 +162,18 @@ def check_darwin_lldb_codesign_requirement(self):
|
|||
llvm_check_file)
|
||||
|
||||
except ProcessError:
|
||||
explanation = ('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.')
|
||||
raise RuntimeError(explanation)
|
||||
# Newer LLVM versions have a simple script that sets up
|
||||
# automatically
|
||||
setup = Executable("./lldb/scripts/macos-setup-codesign.sh")
|
||||
try:
|
||||
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):
|
||||
env.append_flags('CXXFLAGS', self.compiler.cxx11_flag)
|
||||
|
|
Loading…
Reference in a new issue