[Lldb-commits] [lldb] [lldb][AIX] Introducing _ALL_SOURCE macro into driver CMakeLists (PR #120607)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 20 04:07:21 PST 2024
================
@@ -11,6 +11,11 @@ if(APPLE)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_BINARY_DIR}/lldb-Info.plist")
endif()
+if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
+ remove_definitions("-D_XOPEN_SOURCE=700")
----------------
labath wrote:
This is fairly fragile. It may be better to do a `-U_XOPEN_SOURCE`.
Some comment about why you're undoing the changes [here](https://github.com/llvm/llvm-project/blob/d7ddc976d544528fe7f16882f5bec66c3b2a7884/llvm/CMakeLists.txt#L1173) might be in order as well.
https://github.com/llvm/llvm-project/pull/120607
More information about the lldb-commits
mailing list