diff options
author | eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> | 2021-02-24 19:59:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 19:59:12 -0800 |
commit | 1d7fc4cbe1cf5f354c6fe0f5d17ad632251d6f36 (patch) | |
tree | 553e65b4ebe3a5dad8a1d33261e00faea2246537 | |
parent | 2b201ba401c933258978f4df2867bc67358fbc65 (diff) | |
download | spack-1d7fc4cbe1cf5f354c6fe0f5d17ad632251d6f36.tar.gz spack-1d7fc4cbe1cf5f354c6fe0f5d17ad632251d6f36.tar.bz2 spack-1d7fc4cbe1cf5f354c6fe0f5d17ad632251d6f36.tar.xz spack-1d7fc4cbe1cf5f354c6fe0f5d17ad632251d6f36.zip |
llvm-doe+lldb: @doe: fix improper set of LLDB_ENABLE_PYTHON (#21935)
-rw-r--r-- | var/spack/repos/builtin/packages/llvm-doe/package.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/llvm-doe/package.py b/var/spack/repos/builtin/packages/llvm-doe/package.py index 4976753743..0af4a2b0f2 100644 --- a/var/spack/repos/builtin/packages/llvm-doe/package.py +++ b/var/spack/repos/builtin/packages/llvm-doe/package.py @@ -410,12 +410,12 @@ class LlvmDoe(CMakePackage, CudaPackage): if "+python" in spec and "+lldb" in spec: cmake_args.append("-DLLDB_USE_SYSTEM_SIX:Bool=TRUE") + if "+lldb" in spec and spec.satisfies("@10.0.0:,doe"): + cmake_args.append("-DLLDB_ENABLE_PYTHON:Bool={0}".format( + 'ON' if '+python' in spec else 'OFF')) 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( |