Add switch for enabling debug symbols and logs

Enabling the switch on release builds will optimize the binaries as
normal, but will still include debug symbols. This is advantageous for
bugs that do not show up in debug builds without optimizations.
This commit is contained in:
Vasily
2020-01-15 14:01:47 +01:00
committed by username223
parent 5498424889
commit 016e5ebc4a
3 changed files with 20 additions and 1 deletions
+5
View File
@@ -118,3 +118,8 @@ unix {
INSTALLS += application
}
debugSymbolsAndLogs {
message(Debug symbols and logging enabled.)
CONFIG += force_debug_info
DEFINES += ENABLE_DEBUG_LOGGING
}