================
@@ -41,20 +41,43 @@ static uint64_t getTimestampMillis() {
#endif
}
+#ifdef _WIN32
+// Write to files opened with OF_Append may not be guaranteed to be atomic
+// on Windows. Both openLogFile and writeLineToFD are noops on Windows.
+static int openLogFile(StringRef Path) {
----------------
cyndyishida wrote:
Basically, to prevent the logger from being initialized based on window guards,
so you don't need competing implementations of any functions, especially if the
logic for logging expands.
https://github.com/llvm/llvm-project/pull/211966
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits