mingw: Disable stack printing when using MINGW compiler.
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
#include <QCoreApplication>
|
||||
#include <Util.h>
|
||||
#include <crashelper.h>
|
||||
|
||||
#include "Console.h"
|
||||
|
||||
#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");
|
||||
@@ -13,6 +18,8 @@ int main(int argc, char* argv[])
|
||||
#else
|
||||
backward::SetDumpLogSavePath(configDir + QDir::separator() + "dumplog");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
Util::InitLogger("frelayConsole.log", "frelayConsole");
|
||||
|
||||
Reference in New Issue
Block a user