Skip to content

Commit 7ac683c

Browse files
authored
Fix occasional slowness of stack unwinding. (#582)
1 parent 490bbee commit 7ac683c

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

contrib/libunwind

contrib/libunwind-cmake/CMakeLists.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,7 @@ set(LIBUNWIND_ASM_SOURCES
2323
"${LIBUNWIND_SOURCE_DIR}/src/UnwindRegistersRestore.S"
2424
"${LIBUNWIND_SOURCE_DIR}/src/UnwindRegistersSave.S")
2525

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

3628
set(LIBUNWIND_SOURCES
3729
${LIBUNWIND_CXX_SOURCES}

0 commit comments

Comments
 (0)