Skip to content

Commit c2517e6

Browse files
mstorsjogithub-actions[bot]
authored andcommitted
Automerge: [lldb] Add a missing <atomic> include. NFC. (#162809)
This fixes building LLDB for mingw with libstdc++, after 8ae30a3. Previously, building errored out with errors like these: In file included from llvm-project/lldb/include/lldb/Protocol/MCP/Transport.h:12, from llvm-project/lldb/include/lldb/Protocol/MCP/Server.h:16, from llvm-project/lldb/source/Plugins/Protocol/MCP/ProtocolServerMCP.h:15, from llvm-project/lldb/source/Plugins/Protocol/MCP/ProtocolServerMCP.cpp:9: llvm-project/lldb/include/lldb/Host/JSONTransport.h:608:23: error: field ‘replied’ has incomplete type ‘std::atomic<bool>’ 608 | std::atomic<bool> replied = {false}; | ^~~~~~~ In file included from gcc-mingw/x86_64-w64-mingw32/include/c++/12.1.0/bits/shared_ptr_atomic.h:33, from gcc-mingw/x86_64-w64-mingw32/include/c++/12.1.0/memory:78, from llvm-project/lldb/include/lldb/Host/Socket.h:12, from llvm-project/lldb/include/lldb/Core/ProtocolServer.h:13, from llvm-project/lldb/source/Plugins/Protocol/MCP/ProtocolServerMCP.h:12: gcc-mingw/x86_64-w64-mingw32/include/c++/12.1.0/bits/atomic_base.h:162:12: note: declaration of ‘struct std::atomic<bool>’ 162 | struct atomic; | ^~~~~~
2 parents e2d24f2 + 31d2602 commit c2517e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/include/lldb/Host/JSONTransport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "llvm/Support/FormatVariadic.h"
2727
#include "llvm/Support/JSON.h"
2828
#include "llvm/Support/raw_ostream.h"
29+
#include <atomic>
2930
#include <functional>
3031
#include <mutex>
3132
#include <optional>

0 commit comments

Comments
 (0)