mingw: Disable stack printing when using MINGW compiler.

This commit is contained in:
2025-06-20 16:20:34 +08:00
parent 6941e1b893
commit 6aea5f6614
8 changed files with 42 additions and 6 deletions

View File

@@ -4,18 +4,21 @@
#include "frelayGUI.h"
#ifndef ZZXXCC
#ifndef COMPILER_USE_MINGW
#include <crashelper.h>
#endif
int main(int argc, char* argv[])
{
#ifndef COMPILER_USE_MINGW
auto configDir = Util::GetCurConfigPath("frelay");
#ifdef _WIN32
backward::SetDumpFileSavePath(configDir + "/dumpfile");
backward::SetDumpLogSavePath(configDir + "/dumplog");
#else
backward::SetDumpLogSavePath(configDir + QDir::separator() + "dumplog");
#endif
#endif
CRASHELPER_MARK_ENTRY();