llvm+python+lldb depends on py-six for versions 5 and up (#7056)

This commit is contained in:
Gregory Lee 2018-03-22 13:42:41 -07:00 committed by Adam J. Stewart
parent 0d7652c508
commit be3f08d0de

View file

@ -89,6 +89,7 @@ class Llvm(CMakePackage):
depends_on('ncurses', when='+lldb')
depends_on('swig', when='+lldb')
depends_on('libedit', when='+lldb')
depends_on('py-six', when='@5.0.0: +lldb +python')
# gold support
depends_on('binutils+gold', when='+gold')
@ -441,6 +442,8 @@ def cmake_args(self):
'-DLLVM_POLLY_BUILD:Bool=OFF',
'-DLLVM_POLLY_LINK_INTO_TOOLS:Bool=OFF'])
if '+python' in spec and '+lldb' in spec and spec.satisfies('@5.0.0:'):
cmake_args.append('-DLLDB_USE_SYSTEM_SIX:Bool=TRUE')
if '+clang' not in spec:
cmake_args.append('-DLLVM_EXTERNAL_CLANG_BUILD:Bool=OFF')
if '+lldb' not in spec: