D98 Split up releaseWithDebugInfo and profileRelease as 2 separate configs

This commit is contained in:
Mat Sutcliffe
2019-02-08 20:27:13 +00:00
parent 980e1d7b80
commit 08b1141072
2 changed files with 13 additions and 2 deletions

View File

@@ -26,7 +26,8 @@
"xplane": true,
"fg": true
},
"profileRelease": true,
"releaseWithDebugInfo": true,
"profileRelease": false,
"assertsInRelease": true,
"allowNoisyWarnings": false,
"packageInstaller": true,

View File

@@ -54,9 +54,19 @@ include(wordsize.pri)
contains(TEMPLATE, "vc.*"): QMAKE_CXXFLAGS *= /MP
################################
# Profile build
# Release build with debug info
################################
swiftConfig(releaseWithDebugInfo):swiftConfig(profileRelease) {
error(releaseWithDebugInfo and profileRelease can not be enabled together,\
as they require different PDB formats.)
}
swiftConfig(releaseWithDebugInfo) {
msvc {
QMAKE_CXXFLAGS_RELEASE *= /Z7
QMAKE_LFLAGS_RELEASE *= /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF
}
}
swiftConfig(profileRelease) {
msvc {
QMAKE_CXXFLAGS_RELEASE *= /Zi