mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
D98 Split up releaseWithDebugInfo and profileRelease as 2 separate configs
This commit is contained in:
@@ -26,7 +26,8 @@
|
||||
"xplane": true,
|
||||
"fg": true
|
||||
},
|
||||
"profileRelease": true,
|
||||
"releaseWithDebugInfo": true,
|
||||
"profileRelease": false,
|
||||
"assertsInRelease": true,
|
||||
"allowNoisyWarnings": false,
|
||||
"packageInstaller": true,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user