diff options
-rw-r--r-- | var/spack/repos/builtin/packages/llvm/package.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index bf8a77933c..53ce3e12c2 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -287,8 +287,12 @@ class Llvm(CMakePackage, CudaPackage): if "+python" in spec and "+lldb" in spec and spec.satisfies("@5.0.0:"): cmake_args.append("-DLLDB_USE_SYSTEM_SIX:Bool=TRUE") - if "~python" in spec and "+lldb" in spec: - cmake_args.append("-DLLDB_DISABLE_PYTHON:Bool=TRUE") + if "+lldb" in spec and spec.satisfies("@:9.9.9"): + cmake_args.append("-DLLDB_DISABLE_PYTHON:Bool={0}".format( + 'ON' if '~python' in spec else 'OFF')) + if "+lldb" in spec and spec.satisfies("@10.0.0:"): + cmake_args.append("-DLLDB_ENABLE_PYTHON:Bool={0}".format( + 'ON' if '+python' in spec else 'OFF')) if "+gold" in spec: cmake_args.append( |