mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +00:00
[PSEH] When using GCC x64, use native SEH support instead of PSEH
This commit is contained in:
parent
5d7dd4a3b5
commit
457b83f76a
1 changed files with 15 additions and 17 deletions
|
@ -3,9 +3,23 @@ if(ARCH STREQUAL "i386")
|
||||||
list(APPEND ASM_SOURCE
|
list(APPEND ASM_SOURCE
|
||||||
i386/seh.s
|
i386/seh.s
|
||||||
i386/seh_prolog.s)
|
i386/seh_prolog.s)
|
||||||
|
elseif(ARCH STREQUAL "amd64")
|
||||||
|
list(APPEND ASM_SOURCE
|
||||||
|
amd64/seh.s
|
||||||
|
amd64/seh_prolog.s)
|
||||||
|
elseif(ARCH STREQUAL "arm")
|
||||||
|
list(APPEND ASM_SOURCE
|
||||||
|
arm/seh_prolog.s)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(MSVC OR (GCC AND ARCH STREQUAL "amd64"))
|
||||||
|
|
||||||
|
list(APPEND SOURCE dummy.c)
|
||||||
|
add_asm_files(pseh_asm ${ASM_SOURCE})
|
||||||
|
add_library(pseh ${SOURCE} ${pseh_asm})
|
||||||
|
add_dependencies(pseh asm)
|
||||||
|
|
||||||
|
else()
|
||||||
|
|
||||||
if(USE_PSEH3)
|
if(USE_PSEH3)
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/pseh)
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/pseh)
|
||||||
|
@ -29,20 +43,4 @@ if(NOT MSVC)
|
||||||
target_link_libraries(pseh chkstk)
|
target_link_libraries(pseh chkstk)
|
||||||
add_dependencies(pseh psdk)
|
add_dependencies(pseh psdk)
|
||||||
|
|
||||||
else()
|
|
||||||
|
|
||||||
if(ARCH STREQUAL "amd64")
|
|
||||||
list(APPEND ASM_SOURCE
|
|
||||||
amd64/seh.s
|
|
||||||
amd64/seh_prolog.s)
|
|
||||||
elseif(ARCH STREQUAL "arm")
|
|
||||||
list(APPEND ASM_SOURCE
|
|
||||||
arm/seh_prolog.s)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
list(APPEND SOURCE dummy.c)
|
|
||||||
add_asm_files(pseh_asm ${ASM_SOURCE})
|
|
||||||
add_library(pseh ${SOURCE} ${pseh_asm})
|
|
||||||
add_dependencies(pseh asm)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue