Skip to content

Commit 9a1837f

Browse files
[lldb][AIX] Introducing _ALL_SOURCE macro into driver CMakeLists (#120607)
This PR is in reference to porting LLDB on AIX. Link to discussions on llvm discourse and github: 1. https://discourse.llvm.org/t/port-lldb-to-ibm-aix/80640 2. #101657 The complete changes for porting are present in this draft PR: #102601 Adding changes for minimal build for lldb binary on AIX: The `struct winsize` needed by `lldb/tools/driver/Driver.cpp` is only recognised in AIX under the AIX specific `_ALL_SOURCE` macro, hence its enablement is required here.
1 parent 84f0098 commit 9a1837f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lldb/tools/driver/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ if(APPLE)
1111
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_BINARY_DIR}/lldb-Info.plist")
1212
endif()
1313

14+
if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
15+
remove_definitions("-D_XOPEN_SOURCE=700")
16+
add_definitions("-D_ALL_SOURCE")
17+
endif()
18+
1419
add_lldb_tool(lldb
1520
Driver.cpp
1621
Platform.cpp

0 commit comments

Comments
 (0)