Fix libunwind

This commit is contained in:
Amos Bird 2020-05-09 05:44:57 +08:00
parent 6ec7f93fc2
commit e33fb54686
No known key found for this signature in database
GPG Key ID: 80D430DCBECFEDB4
2 changed files with 1 additions and 6 deletions

View File

@ -214,11 +214,6 @@ set (CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O3 ${
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -g3 -ggdb3 -fno-inline ${CMAKE_C_FLAGS_ADD}")
if (COMPILER_CLANG)
# Exception unwinding doesn't work in clang release build without this option
# TODO investigate that
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-omit-frame-pointer")
if (OS_DARWIN)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-U,_inside_main")

2
contrib/libunwind vendored

@ -1 +1 @@
Subproject commit ede00622ff8ecb1848ed22187eabbfaf8b4e9307
Subproject commit 27026ef4a9c6c8cc956d1d131c4d794e24096981