Skip to content

Commit 513c215

Browse files
committed
[lldb][test] Only link Windows libraries on Windows
ld.lld: error: unable to find library -llldbPluginProcessWindowsCommon https://lab.llvm.org/buildbot/#/builders/96/builds/50407 Fixes 95e5839.
1 parent b223aeb commit 513c215

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lldb/unittests/Thread/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
2+
list(APPEND LLDB_WINDOWS_LIBS lldbPluginProcessWindows)
3+
list(APPEND LLDB_WINDOWS_LIBS lldbPluginProcessWindowsCommon)
4+
endif()
5+
16
add_lldb_unittest(ThreadTests
27
ThreadTest.cpp
38

@@ -11,7 +16,6 @@ add_lldb_unittest(ThreadTests
1116
lldbInterpreter
1217
lldbBreakpoint
1318
lldbPluginPlatformLinux
14-
lldbPluginPlatformWindows
15-
lldbPluginProcessWindowsCommon
19+
${LLDB_WINDOWS_LIBS}
1620
)
1721

0 commit comments

Comments
 (0)