Skip to content

Commit eb1f9cc

Browse files
authored
[libunwind] Fix compilation for the x32 ABI. (#116608)
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 4c8c130 commit eb1f9cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libunwind/include/__libunwind_config.h

+3
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)