mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-25 21:45:57 +00:00
mingw-w64's `crtdbg.h` expands `_CrtSetReportMode` and `_CrtSetReportFile` to no-ops unless `_DEBUG` is set, and declares them as real debug-CRT imports when it is. That macro means both "this code is built in debug mode" and "a debug CRT is linked", which go together for MSVC but not for MinGW, where a debug build normally still links the release CRT. A debug MinGW build therefore compiles the `LLDB_DISABLE_CRASH_DIALOG` path but fails to link it; release MinGW builds get the no-op macros, which is why the distributed MinGW packages never hit it. Guard the calls with `_MSC_VER`. `SetErrorMode` above them is a Win32 API and stays unconditional. Assisted-by: Claude Fable 5 |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| SystemInitializer.cpp | ||
| SystemInitializerCommon.cpp | ||
| SystemLifetimeManager.cpp | ||