Skip to content

Commit 279b293

Browse files
committed
[libunwind] Fix compilation for the x32 ABI.
This would previously fail the static assertions in UnwindCursor.hpp due to UnwindCursor's size not matching unw_cursor_t's size. As is done for MIPS N32, this just declares the appropriate size in __libunwind_config.h.
1 parent c95daac commit 279b293

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libunwind/include/__libunwind_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
# else
5454
# define _LIBUNWIND_CURSOR_SIZE 66
5555
# endif
56+
# elif defined(__ILP32__)
57+
# define _LIBUNWIND_CONTEXT_SIZE 21
58+
# define _LIBUNWIND_CURSOR_SIZE 28
5659
# else
5760
# define _LIBUNWIND_CONTEXT_SIZE 21
5861
# define _LIBUNWIND_CURSOR_SIZE 33

0 commit comments

Comments
 (0)