[COMPILER_APITEST] Disable SEH tests for GCC amd64 build

This commit is contained in:
Jérôme Gardou 2021-04-09 16:52:53 +02:00 committed by Jérôme Gardou
parent 0995b35bac
commit 79bc62f206
2 changed files with 11 additions and 3 deletions

View file

@ -1,15 +1,21 @@
add_subdirectory(ms) if (NOT (GCC AND (ARCH STREQUAL "amd64")))
#FIXME _setjmp definitions in CRT headers is wrong
add_subdirectory(ms)
list(APPEND SOURCE ms_seh.c)
endif()
list(APPEND SOURCE list(APPEND SOURCE
ms_seh.c
pseh.c pseh.c
pseh_cpp.cpp pseh_cpp.cpp
psehtest2.c psehtest2.c
testlist.c) testlist.c)
add_executable(compiler_apitest ${SOURCE}) add_executable(compiler_apitest ${SOURCE})
target_link_libraries(compiler_apitest ms_seh_test wine ${PSEH_LIB}) if (NOT (GCC AND (ARCH STREQUAL "amd64")))
target_link_libraries(compiler_apitest ms_seh_test)
endif()
target_link_libraries(compiler_apitest wine ${PSEH_LIB})
set_module_type(compiler_apitest win32cui) set_module_type(compiler_apitest win32cui)
add_importlibs(compiler_apitest msvcrt kernel32 ntdll) add_importlibs(compiler_apitest msvcrt kernel32 ntdll)
add_rostests_file(TARGET compiler_apitest) add_rostests_file(TARGET compiler_apitest)

View file

@ -7,7 +7,9 @@ extern void func_pseh_cpp(void);
const struct test winetest_testlist[] = const struct test winetest_testlist[] =
{ {
#if !(defined(__GNUC__) && defined(_M_AMD64))
{ "ms-seh", func_ms_seh }, { "ms-seh", func_ms_seh },
#endif
{ "pseh", func_pseh }, { "pseh", func_pseh },
{ "pseh_cpp", func_pseh_cpp }, { "pseh_cpp", func_pseh_cpp },
{ 0, 0 } { 0, 0 }