LLVM code-signing on OSX: link to the offical documentation (#13428)

* LLVM code-signing on OSX: link to the offical documentation

* LLVM: update setup_environment method
This commit is contained in:
Andreas Baumbach 2019-10-28 03:59:13 +01:00 committed by Adam J. Stewart
parent 82428133d6
commit ea6e279bbc

View file

@ -619,17 +619,18 @@ def check_darwin_lldb_codesign_requirement(self):
except ProcessError: except ProcessError:
explanation = ('The "lldb_codesign" identity must be available' explanation = ('The "lldb_codesign" identity must be available'
' to build LLVM with LLDB. See https://github.com/' ' to build LLVM with LLDB. See https://lldb.llvm'
'jevinskie/llvm-lldb/blob/master/docs/code-signing' '.org/resources/build.html#code-signing-on-macos'
'.txt for details on how to create this identity.') 'for details on how to create this identity.')
raise RuntimeError(explanation) raise RuntimeError(explanation)
def setup_environment(self, spack_env, run_env): def setup_build_environment(self, env):
spack_env.append_flags('CXXFLAGS', self.compiler.cxx11_flag) env.append_flags('CXXFLAGS', self.compiler.cxx11_flag)
def setup_run_environment(self, env):
if '+clang' in self.spec: if '+clang' in self.spec:
run_env.set('CC', join_path(self.spec.prefix.bin, 'clang')) env.set('CC', join_path(self.spec.prefix.bin, 'clang'))
run_env.set('CXX', join_path(self.spec.prefix.bin, 'clang++')) env.set('CXX', join_path(self.spec.prefix.bin, 'clang++'))
def cmake_args(self): def cmake_args(self):
spec = self.spec spec = self.spec