Skip to content

Commit 0380044

Browse files
committed
Fix the EditLine unittest build on Darwin after PR 92865
There was a Darwin only use of setupterm (under USE_SETUPTERM_WORKAROUND) that required libcurses.dylib. That was added to the main build, but not to the unittest.
1 parent 2ae3f7c commit 0380044

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lldb/unittests/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
5151
# FIXME: APITests.exe is not a valid googletest binary.
5252
add_subdirectory(API)
5353
endif()
54+
if (NOT CMAKE_SYSTEM_NAME MATCHES "Darwin" OR LLDB_ENABLE_CURSES)
55+
add_subdirectory(Editline)
56+
endif()
5457
add_subdirectory(Breakpoint)
5558
add_subdirectory(Core)
5659
add_subdirectory(DataFormatter)
5760
add_subdirectory(Disassembler)
58-
add_subdirectory(Editline)
5961
add_subdirectory(Expression)
6062
add_subdirectory(Host)
6163
add_subdirectory(Interpreter)

lldb/unittests/Editline/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ add_lldb_unittest(EditlineTests
55
lldbHost
66
lldbUtility
77
LLVMTestingSupport
8+
${CURSES_LIBRARIES}
89
)

0 commit comments

Comments
 (0)