Author: David Spickett Date: 2023-12-21T13:11:34Z New Revision: 513c2151cd0cddd90af91a6614b15b74b538963e
URL: https://github.com/llvm/llvm-project/commit/513c2151cd0cddd90af91a6614b15b74b538963e DIFF: https://github.com/llvm/llvm-project/commit/513c2151cd0cddd90af91a6614b15b74b538963e.diff LOG: [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 95e5839e06fdffd278499257c6e7679bba3d6868. Added: Modified: lldb/unittests/Thread/CMakeLists.txt Removed: ################################################################################ diff --git a/lldb/unittests/Thread/CMakeLists.txt b/lldb/unittests/Thread/CMakeLists.txt index f6c8795f349a5e..a90643eb0c110e 100644 --- a/lldb/unittests/Thread/CMakeLists.txt +++ b/lldb/unittests/Thread/CMakeLists.txt @@ -1,3 +1,8 @@ +if (CMAKE_SYSTEM_NAME MATCHES "Windows") + list(APPEND LLDB_WINDOWS_LIBS lldbPluginProcessWindows) + list(APPEND LLDB_WINDOWS_LIBS lldbPluginProcessWindowsCommon) +endif() + add_lldb_unittest(ThreadTests ThreadTest.cpp @@ -11,7 +16,6 @@ add_lldb_unittest(ThreadTests lldbInterpreter lldbBreakpoint lldbPluginPlatformLinux - lldbPluginPlatformWindows - lldbPluginProcessWindowsCommon + ${LLDB_WINDOWS_LIBS} ) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits