mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[CMAKE]
- Add an option to fully disable PSEH (aka use dummy PSEH). svn path=/trunk/; revision=60822
This commit is contained in:
parent
e1664319fa
commit
7445605fbd
3 changed files with 13 additions and 0 deletions
|
@ -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.")
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue