- Add an option to fully disable PSEH (aka use dummy PSEH).

svn path=/trunk/; revision=60822
This commit is contained in:
Aleksey Bragin 2013-11-01 11:58:31 +00:00
parent e1664319fa
commit 7445605fbd
3 changed files with 13 additions and 0 deletions

View file

@ -76,3 +76,6 @@ set(_PREFAST_ FALSE CACHE BOOL
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.")

View file

@ -17,6 +17,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
add_compile_flags("-pipe -fms-extensions -fno-strict-aliasing")
if(GCC_VERSION VERSION_GREATER 4.7)

View file

@ -6,6 +6,8 @@ if(NOT MSVC)
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