[all-commits] [llvm/llvm-project] 385f5c: [lldb][CMake] Fix linking of gdb-remote when LLVM_...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Feb 7 23:26:36 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 385f5c4d33799df25a85ceb54b6232499cb8a78d
https://github.com/llvm/llvm-project/commit/385f5c4d33799df25a85ceb54b6232499cb8a78d
Author: Mariusz Ceier <mceier+llvm at gmail.com>
Date: 2022-02-07 (Mon, 07 Feb 2022)
Changed paths:
M lldb/source/Plugins/Process/gdb-remote/CMakeLists.txt
Log Message:
-----------
[lldb][CMake] Fix linking of gdb-remote when LLVM_ENABLE_ZLIB is ON
When LLVM_ENABLE_ZLIB is ON gdb-remote should link against ZLIB::ZLIB.
This fixes
```
/mnt/b/yoe/master/build/tmp/hosttools/ld: lib/liblldbPluginProcessGDBRemote.a(GDBRemoteCommunication.cpp.o): in function `lldb_private::process_gdb_remote::GDBRemoteCommunication::DecompressPacket() [clone .localalias]':
GDBRemoteCommunication.cpp:(.text._ZN12lldb_private18process_gdb_remote22GDBRemoteCommunication16DecompressPacketEv+0x59a): undefined reference to `inflateInit2_'
/mnt/b/yoe/master/build/tmp/hosttools/ld: GDBRemoteCommunication.cpp:(.text._ZN12lldb_private18process_gdb_remote22GDBRemoteCommunication16DecompressPacketEv+0x5af): undefined reference to `inflate'
```
Reviewed By: JDevlieghere, MaskRay
Differential Revision: https://reviews.llvm.org/D119186
More information about the All-commits
mailing list