Keep a frame pointer register on OSX - libunwind seems to crash when it's not present
This commit is contained in:
parent
194ada2481
commit
43d862bff9
|
@ -247,7 +247,7 @@ if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||||
set(wxWidgets_USE_DEBUG ON CACHE BOOL "Use wxWidgets Debugging")
|
set(wxWidgets_USE_DEBUG ON CACHE BOOL "Use wxWidgets Debugging")
|
||||||
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
|
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL Release)
|
if(CMAKE_BUILD_TYPE STREQUAL Release AND NOT APPLE)
|
||||||
add_definitions(-fomit-frame-pointer)
|
add_definitions(-fomit-frame-pointer)
|
||||||
endif(CMAKE_BUILD_TYPE STREQUAL Release)
|
endif(CMAKE_BUILD_TYPE STREQUAL Release)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue