This commit is contained in:
oltolm 2023-11-22 18:06:31 +01:00
parent 246fd9a4da
commit f957d08b3c
2 changed files with 8 additions and 0 deletions

View File

@ -785,3 +785,7 @@ endif()
if(NOT MSVC)
target_compile_options(core PRIVATE -Wno-invalid-offsetof)
endif()
if(USE_ASAN)
set_source_files_properties(MemTools.cpp PROPERTIES COMPILE_DEFINITIONS USE_ASAN)
endif()

View File

@ -102,7 +102,11 @@ static LONG NTAPI Handler(PEXCEPTION_POINTERS pPtrs)
void InstallExceptionHandler()
{
ASSERT(!s_veh_handle);
#ifdef USE_ASAN
s_veh_handle = AddVectoredExceptionHandler(FALSE, Handler);
#else
s_veh_handle = AddVectoredExceptionHandler(TRUE, Handler);
#endif
ASSERT(s_veh_handle);
}