[Lldb-commits] [clang] [lldb] [llvm] Extending LLDB to work on AIX (PR #102601)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 9 07:47:32 PDT 2024


================
@@ -38,6 +38,10 @@ endif()
 include(LLDBConfig)
 include(AddLLDB)
 
+if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
+  add_definitions("-D__AIX__")
----------------
DavidSpickett wrote:

Also remember that users may be debugging AIX from a non-AIX host where the compiler would not be setting any macros like that.

(though perhaps this is exactly why you defined this manually, just to get it working on AIX only as the first step)

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


More information about the lldb-commits mailing list