Skip to content

Commit

Permalink
Fix occasional slowness of stack unwinding. (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
yokofly authored Feb 28, 2024
1 parent 490bbee commit 7ac683c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion contrib/libunwind
10 changes: 1 addition & 9 deletions contrib/libunwind-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,7 @@ set(LIBUNWIND_ASM_SOURCES
"${LIBUNWIND_SOURCE_DIR}/src/UnwindRegistersRestore.S"
"${LIBUNWIND_SOURCE_DIR}/src/UnwindRegistersSave.S")

# CMake doesn't pass the correct architecture for Apple prior to CMake 3.19 [1]
# Workaround these two issues by compiling as C.
#
# [1]: https://gitlab.kitware.com/cmake/cmake/-/issues/20771
if (APPLE AND CMAKE_VERSION VERSION_LESS 3.19)
set_source_files_properties(${LIBUNWIND_ASM_SOURCES} PROPERTIES LANGUAGE C)
else()
enable_language(ASM)
endif()
enable_language(ASM)

set(LIBUNWIND_SOURCES
${LIBUNWIND_CXX_SOURCES}
Expand Down

0 comments on commit 7ac683c

Please sign in to comment.