[Lldb-commits] [lldb] [lldb][AIX] Some base #if _AIX changes of a minimal lldb build (PR #120979)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 3 02:29:58 PST 2025


================
@@ -1226,7 +1226,7 @@ bool lldb_private::formatters::ObjCSELSummaryProvider(
 time_t lldb_private::formatters::GetOSXEpoch() {
   static time_t epoch = 0;
   if (!epoch) {
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(_AIX)
----------------
DavidSpickett wrote:

This would just return 0 on Windows or AIX, but your change isn't making that any worse so it's fine. I think the side effect is printing an `NSDate` while debugging Mac OS from either would give the wrong result.

Something that is clearly done rarely, probably never.

https://github.com/llvm/llvm-project/pull/120979


More information about the lldb-commits mailing list