Author: fireball Date: Fri Nov 1 11:58:31 2013 New Revision: 60822
URL: http://svn.reactos.org/svn/reactos?rev=60822&view=rev Log: [CMAKE] - Add an option to fully disable PSEH (aka use dummy PSEH).
Modified: trunk/reactos/cmake/config.cmake trunk/reactos/cmake/gcc.cmake trunk/reactos/lib/pseh/CMakeLists.txt
Modified: trunk/reactos/cmake/config.cmake URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/config.cmake?rev=6082... ============================================================================== --- trunk/reactos/cmake/config.cmake [iso-8859-1] (original) +++ trunk/reactos/cmake/config.cmake [iso-8859-1] Fri Nov 1 11:58:31 2013 @@ -76,3 +76,6 @@ set(_VS_ANALYZE_ FALSE CACHE BOOL "Whether to enable static analysis while compiling.") endif() + +set(USE_DUMMY_PSEH FALSE CACHE BOOL +"Whether to disable PSEH support.")
Modified: trunk/reactos/cmake/gcc.cmake URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=60822&a... ============================================================================== --- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original) +++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Fri Nov 1 11:58:31 2013 @@ -15,6 +15,14 @@
if(USE_PSEH3) add_definitions(-D_USE_PSEH3=1) +endif() + +if(NOT DEFINED USE_DUMMY_PSEH) + set(USE_DUMMY_PSEH 0) +endif() + +if(USE_DUMMY_PSEH) + add_definitions(-D_USE_DUMMY_PSEH=1) endif()
# Compiler Core
Modified: trunk/reactos/lib/pseh/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/pseh/CMakeLists.txt?rev... ============================================================================== --- trunk/reactos/lib/pseh/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/lib/pseh/CMakeLists.txt [iso-8859-1] Fri Nov 1 11:58:31 2013 @@ -6,6 +6,8 @@ list(APPEND SOURCE i386/pseh3.c i386/pseh3_i386.S) + elseif(USE_DUMMY_PSEH) + list(APPEND SOURCE dummy.c) elseif(ARCH STREQUAL "i386") list(APPEND SOURCE i386/framebased.S