From 59e5ddd9670627f305e9b19048942ccd9992851d Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 15 Sep 2024 12:13:54 +0200 Subject: Core/CrashHandler: Compile WheatyExceptionReport only once and moved its global variable initializer to all projects using it (cherry picked from commit fd0a7ba871060c895fdf701799dbf649ee697078) --- src/tools/vmap4_assembler/VMapAssembler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tools/vmap4_assembler/VMapAssembler.cpp') diff --git a/src/tools/vmap4_assembler/VMapAssembler.cpp b/src/tools/vmap4_assembler/VMapAssembler.cpp index 38eb53ed9be..c6d40d1ca44 100644 --- a/src/tools/vmap4_assembler/VMapAssembler.cpp +++ b/src/tools/vmap4_assembler/VMapAssembler.cpp @@ -62,3 +62,9 @@ int main(int argc, char* argv[]) std::cout << "Ok, all done" << std::endl; return 0; } + +#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS +#include "WheatyExceptionReport.h" +// must be at end of file because of init_seg pragma +INIT_CRASH_HANDLER(); +#endif -- cgit v1.2.3