From e4111d3c7597e804e7765992ae14d6c769a333e7 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 29 May 2015 10:53:04 -0700 Subject: [PATCH] Debug information in release builds --- QGCCommon.pri | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/QGCCommon.pri b/QGCCommon.pri index 85510004b..f0f9516bb 100644 --- a/QGCCommon.pri +++ b/QGCCommon.pri @@ -178,6 +178,10 @@ ReleaseBuild { # Use link time code generation for better optimization (I believe this is supported in MSVC Express, but not 100% sure) QMAKE_LFLAGS_LTCG = /LTCG QMAKE_CFLAGS_LTCG = -GL + + # Turn on debugging information so we can collect good crash dumps from release builds + QMAKE_CXXFLAGS_RELEASE += /Zi + QMAKE_LFLAGS_RELEASE += /DEBUG } } -- 2.22.0