mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
D98 Split up releaseWithDebugInfo and profileRelease as 2 separate configs
This commit is contained in:
@@ -26,7 +26,8 @@
|
|||||||
"xplane": true,
|
"xplane": true,
|
||||||
"fg": true
|
"fg": true
|
||||||
},
|
},
|
||||||
"profileRelease": true,
|
"releaseWithDebugInfo": true,
|
||||||
|
"profileRelease": false,
|
||||||
"assertsInRelease": true,
|
"assertsInRelease": true,
|
||||||
"allowNoisyWarnings": false,
|
"allowNoisyWarnings": false,
|
||||||
"packageInstaller": true,
|
"packageInstaller": true,
|
||||||
|
|||||||
@@ -54,9 +54,19 @@ include(wordsize.pri)
|
|||||||
contains(TEMPLATE, "vc.*"): QMAKE_CXXFLAGS *= /MP
|
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) {
|
swiftConfig(profileRelease) {
|
||||||
msvc {
|
msvc {
|
||||||
QMAKE_CXXFLAGS_RELEASE *= /Zi
|
QMAKE_CXXFLAGS_RELEASE *= /Zi
|
||||||
|
|||||||
Reference in New Issue
Block a user