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:
explanation = ('The "lldb_codesign" identity must be available'
' to build LLVM with LLDB. See https://github.com/'
'jevinskie/llvm-lldb/blob/master/docs/code-signing'
'.txt for details on how to create this identity.')
' 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)
def setup_environment(self, spack_env, run_env):
spack_env.append_flags('CXXFLAGS', self.compiler.cxx11_flag)
def setup_build_environment(self, env):
env.append_flags('CXXFLAGS', self.compiler.cxx11_flag)
def setup_run_environment(self, env):
if '+clang' in self.spec:
run_env.set('CC', join_path(self.spec.prefix.bin, 'clang'))
run_env.set('CXX', join_path(self.spec.prefix.bin, 'clang++'))
env.set('CC', join_path(self.spec.prefix.bin, 'clang'))
env.set('CXX', join_path(self.spec.prefix.bin, 'clang++'))
def cmake_args(self):
spec = self.spec