From: Kurt Kremitzki Date: Wed, 8 Apr 2020 12:12:47 +0000 (+0100) Subject: Enable exception handling X-Git-Tag: archive/raspbian/7.3.3+dfsg1-2+rpi1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1547fa9290ad7cd78945d7de7f22b7553b38e501;p=opencascade.git Enable exception handling Last-Update: 2018-06-10 Upstream defaults to no exception handling for performance reasons, but in OCCT's role as a shared library it's better for Debian to enable it. Gbp-Pq: Name enable-exception-handling.patch --- diff --git a/adm/cmake/occt_defs_flags.cmake b/adm/cmake/occt_defs_flags.cmake index 09da18d38..615cb07d4 100644 --- a/adm/cmake/occt_defs_flags.cmake +++ b/adm/cmake/occt_defs_flags.cmake @@ -138,5 +138,5 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR MINGW) set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s") endif() -set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNo_Exception") -set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNo_Exception") +#set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNo_Exception") +#set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNo_Exception")