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:
parent
82428133d6
commit
ea6e279bbc
1 changed files with 8 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue