Skip to content

Commit 85624c5

Browse files
author
Asiri Rathnayake
committed
[libunwind] Disable cross-unwinding by default.
Cross unwinding requires larger sizes for unw_context_t and unw_cursor_t buffers (large enough to hold the VRS of any architecture). This is not desirable for the most common situation where libunwind is used for native unwinding only. This patch makes native unwinding the default build configuration. This will start testing the tigher (compile-time) bounds of unw_context_t and unw_cursor_t buffers for each architecture. Change-Id: Ic61c476a75603ca4812959c233cfe56f83dc0b00 llvm-svn: 270972
1 parent 1ef6845 commit 85624c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libunwind/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ option(LIBUNWIND_ENABLE_ASSERTIONS "Enable assertions independent of build mode.
103103
option(LIBUNWIND_ENABLE_PEDANTIC "Compile with pedantic enabled." ON)
104104
option(LIBUNWIND_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF)
105105
option(LIBUNWIND_ENABLE_SHARED "Build libunwind as a shared library." ON)
106-
option(LIBUNWIND_ENABLE_CROSS_UNWINDING "Enable cross-platform unwinding support." ON)
106+
option(LIBUNWIND_ENABLE_CROSS_UNWINDING "Enable cross-platform unwinding support." OFF)
107107

108108
set(LIBUNWIND_GCC_TOOLCHAIN "" CACHE STRING "GCC toolchain for cross compiling.")
109109
set(LIBUNWIND_SYSROOT "" CACHE STRING "Sysroot for cross compiling.")

0 commit comments

Comments
 (0)