mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 07:08:19 +00:00
![Timo Kreuzer](/assets/img/avatar_default.png)
* [COMPILER_APITEST] Import MS EH/SEH tests Taken from https://github.com/microsoft/compiler-tests * [CRT] Add missing declaration of _longjmpex * [COMPILER_APITEST] Add cmake build files for MS SEH test It is built as a static library * [COMPILER_APITEST] Fix GCC build of MS SEH tests There are a number of hacks in there now. Also the volatile hacks should be separated and sent upstream. * [COMPILER_APITEST] Fix x64 build of MS SEH tests * [COMPILER_APITEST] Fix clang build of MS SEH tests * [COMPILER_APITEST] Include MS SEH tests
27 lines
1.4 KiB
CMake
27 lines
1.4 KiB
CMake
|
|
if(MSVC)
|
|
add_compile_options("/wd4189") # error C4189: 'Index2': local variable is initialized but not referenced
|
|
add_compile_options("/wd4197") # warning C4197: 'volatile LONG': top-level volatile in cast is ignored
|
|
add_compile_options("/wd4532") # warning C4532: 'break': jump out of __finally block has undefined behavior during termination handling
|
|
else()
|
|
add_compile_options("-Wno-format")
|
|
add_compile_options("-Wno-implicit-function-declaration")
|
|
add_compile_options("-Wno-unused-label")
|
|
add_compile_options("-Wno-unused-variable")
|
|
endif()
|
|
|
|
foreach(num RANGE 1 9)
|
|
list(APPEND SOURCE seh000${num}.c)
|
|
set_source_files_properties(seh000${num}.c PROPERTIES COMPILE_DEFINITIONS
|
|
"main=seh000${num};test=test_${num};Echo=Echo_${num};dojump=dojump_${num};AccessViolation=AccessViolation_${num};rtlRaiseExceptin=rtlRaiseExceptin_${num};rtlRaiseException=rtlRaiseException_${num};rtlRaiseStatus=rtlRaiseStatus_${num}")
|
|
endforeach()
|
|
|
|
foreach(num RANGE 10 58)
|
|
list(APPEND SOURCE seh00${num}.c)
|
|
set_source_files_properties(seh00${num}.c PROPERTIES COMPILE_DEFINITIONS
|
|
"main=seh00${num};test=test_${num};Echo=Echo_${num};dojump=dojump_${num};AccessViolation=AccessViolation_${num};rtlRaiseExceptin=rtlRaiseExceptin_${num};rtlRaiseException=rtlRaiseException_${num};rtlRaiseStatus=rtlRaiseStatus_${num}")
|
|
endforeach()
|
|
|
|
add_library(ms_seh_test ${SOURCE})
|
|
add_dependencies(ms_seh_test psdk)
|