[all-commits] [llvm/llvm-project] 524758: [lldb][CMake] Fix linking of gdb-remote when LLVM_...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Feb 7 23:27:14 PST 2022
Branch: refs/heads/release/14.x
Home: https://github.com/llvm/llvm-project
Commit: 524758d1a75e21a9133b597ea649237d75a46abb
https://github.com/llvm/llvm-project/commit/524758d1a75e21a9133b597ea649237d75a46abb
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
(cherry picked from commit 385f5c4d33799df25a85ceb54b6232499cb8a78d)
More information about the All-commits
mailing list