[PSEH] Fix test on non-existent variable, so GCC x64 now always uses native SEH instead of PSEH

This commit is contained in:
Hervé Poussineau 2021-01-30 23:04:44 +01:00
parent 158235bdd5
commit 349e0ddde8

View file

@ -12,7 +12,7 @@ elseif(ARCH STREQUAL "arm")
arm/seh_prolog.s)
endif()
if(MSVC OR (GCC AND ARCH STREQUAL "amd64"))
if(MSVC OR (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND ARCH STREQUAL "amd64"))
list(APPEND SOURCE dummy.c)
add_asm_files(pseh_asm ${ASM_SOURCE})