summaryrefslogtreecommitdiffstats
path: root/platform/windows/godot_windows.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-05-13 15:42:07 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-04-22 16:19:37 +0300
commitc1b34672f95d03be104828679f606ed4a1cc24c3 (patch)
tree98895c303af1713597a4aae371e3683de0dedb2f /platform/windows/godot_windows.cpp
parent7529c0bec597d70bc61975a82063bb5112ac8879 (diff)
downloadredot-engine-c1b34672f95d03be104828679f606ed4a1cc24c3.tar.gz
[Windows] Enable crash reporter on MinGW builds, use libbacktrace to generate stack trace from DWARF symbols.
Diffstat (limited to 'platform/windows/godot_windows.cpp')
-rw-r--r--platform/windows/godot_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/godot_windows.cpp b/platform/windows/godot_windows.cpp
index 5f41b4e568..486c3120fc 100644
--- a/platform/windows/godot_windows.cpp
+++ b/platform/windows/godot_windows.cpp
@@ -215,7 +215,7 @@ int main(int argc, char **argv) {
// _argc and _argv are ignored
// we are going to use the WideChar version of them instead
-#ifdef CRASH_HANDLER_EXCEPTION
+#if defined(CRASH_HANDLER_EXCEPTION) && defined(_MSC_VER)
__try {
return _main();
} __except (CrashHandlerException(GetExceptionInformation())) {