Enable exception handling
authorKurt Kremitzki <kkremitzki@gmail.com>
Wed, 8 Apr 2020 12:12:47 +0000 (13:12 +0100)
committerTobias Frost <tobi@debian.org>
Wed, 8 Apr 2020 12:12:47 +0000 (13:12 +0100)
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

adm/cmake/occt_defs_flags.cmake

index 09da18d3828c8f57ee24d9622b24d80f04c7fd1e..615cb07d4743964c1dbd7a36ca2588286aad9a97 100644 (file)
@@ -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")