Skip to content

Commit 7160324

Browse files
committed
Update commit message and add comment
Created using spr 1.3.6-beta.1
1 parent 9f952de commit 7160324

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libunwind/src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ set(LIBUNWIND_C_SOURCES
2020
)
2121
set_source_files_properties(${LIBUNWIND_C_SOURCES}
2222
PROPERTIES
23+
# We need to set `-fexceptions` here so that key
24+
# unwinding functions, like
25+
# _UNWIND_RaiseExcpetion, are not marked as
26+
# `nounwind`, which breaks LTO builds of
27+
# libunwind. See #56825 and #120657 for context.
2328
COMPILE_FLAGS "-std=c99 -fexceptions")
2429

2530
set(LIBUNWIND_ASM_SOURCES

0 commit comments

Comments
 (0)