LLVM lldb 10.0: Python Link Dependency (#16299)

* LLVM: Python Dependency

Effort to expose the linked python library when building LLVM.
This might fix the forward propagation of libintl that comes
with the static python library build on darwin.

* LLDB Py: Remove Ignored Old Flags

Changed in LLVM 10.0+
This commit is contained in:
Axel Huebl 2020-04-25 21:36:08 -07:00 committed by GitHub
parent 4cd537f6c7
commit 75042c381c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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