Skip to content

Commit 72aefbb

Browse files
authored
[lldb] Include <chrono> for system_clock and now (#118059)
I am a member of Microsoft vcpkg, due to there are new changes merged by microsoft/STL#5105, which revealed a conformance issue in `llvm`. It must add include `<chrono>` to fix this error. Compiler error with this STL change: ``` D:\b\llvm\src\org-18.1.6-e754cb1d0b.clean\lldb\tools\lldb-dap\ProgressEvent.h(79): error C2039: 'system_clock': is not a member of 'std::chrono' D:\b\llvm\src\org-18.1.6-e754cb1d0b.clean\lldb\tools\lldb-dap\ProgressEvent.cpp(134): error C3083: 'system_clock': the symbol to the left of a '::' must be a type D:\b\llvm\src\org-18.1.6-e754cb1d0b.clean\lldb\tools\lldb-dap\ProgressEvent.cpp(134): error C2039: 'now': is not a member of 'std::chrono' ```
1 parent 3eed847 commit 72aefbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/tools/lldb-dap/ProgressEvent.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
#include <atomic>
10+
#include <chrono>
1011
#include <mutex>
1112
#include <optional>
1213
#include <queue>

0 commit comments

Comments
 (0)