https://github.com/LilyWangLL created 
https://github.com/llvm/llvm-project/pull/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 C2039: 'now': is not a member of 'std::chrono'
```


>From ba57c78dbc302cc877cc9e2a0d3e91f77e73920c Mon Sep 17 00:00:00 2001
From: LilyWangLL <494550...@qq.com>
Date: Thu, 28 Nov 2024 23:31:32 -0800
Subject: [PATCH] Include `<chrono>` for `system_clock`

---
 lldb/tools/lldb-dap/ProgressEvent.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lldb/tools/lldb-dap/ProgressEvent.h 
b/lldb/tools/lldb-dap/ProgressEvent.h
index dac21977add2d0..72317b879c803a 100644
--- a/lldb/tools/lldb-dap/ProgressEvent.h
+++ b/lldb/tools/lldb-dap/ProgressEvent.h
@@ -7,6 +7,7 @@
 
//===----------------------------------------------------------------------===//
 
 #include <atomic>
+#include <chrono>
 #include <mutex>
 #include <optional>
 #include <queue>

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to