llvm: fix ncurses+termlib linking in lldb (#40594)

This commit is contained in:
Harmen Stoppels 2023-10-18 19:04:49 +02:00 committed by GitHub
parent dc071a3995
commit 55198c49e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -562,6 +562,16 @@ class Llvm(CMakePackage, CudaPackage):
patch("add-include-for-libelf-llvm-12-14.patch", when="@12:14")
patch("add-include-for-libelf-llvm-15.patch", when="@15")
@when("@14:17")
def patch(self):
# https://github.com/llvm/llvm-project/pull/69458
filter_file(
r"${TERMINFO_LIB}",
r"${Terminfo_LIBRARIES}",
"lldb/source/Core/CMakeLists.txt",
string=True,
)
# The functions and attributes below implement external package
# detection for LLVM. See:
#