llvm-doe+lldb: @doe: fix improper set of LLDB_ENABLE_PYTHON (#21935)

This commit is contained in:
eugeneswalker 2021-02-24 19:59:12 -08:00 committed by GitHub
parent 2b201ba401
commit 1d7fc4cbe1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -410,12 +410,12 @@ def cmake_args(self):
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(