aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2020-03-03 18:38:57 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2020-03-06 17:47:35 +0000
commit4e00b0777b0348159fc77fdb2ccb4a3c3e2c9d2a (patch)
tree6ac17db3bf939fab10c625bfd24d27ade4f2e0f6 /share
parentf4ba1c69e2e06e7bb443b1a6fbd30833d2fcdc24 (diff)
Add "profiling" build variant
Also known as "release-with-debug-info" Change-Id: Ieed358810ea423ea7a9a1a52a36fa35cf165dfac Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qbs/modules/qbs/common.qbs6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/qbs/modules/qbs/common.qbs b/share/qbs/modules/qbs/common.qbs
index 63bc29f8e..9fb9dba3e 100644
--- a/share/qbs/modules/qbs/common.qbs
+++ b/share/qbs/modules/qbs/common.qbs
@@ -48,8 +48,8 @@ Module {
property string buildVariant: defaultBuildVariant
property bool enableDebugCode: buildVariant == "debug"
- property bool debugInformation: (buildVariant == "debug")
- property string optimization: (buildVariant == "debug" ? "none" : "fast")
+ property bool debugInformation: (buildVariant !== "release")
+ property string optimization: (buildVariant === "debug" ? "none" : "fast")
readonly property string hostPlatform: undefined // set internally
readonly property stringList hostOS: Utilities.canonicalPlatform(hostPlatform)
property string hostOSVersion: {
@@ -106,7 +106,7 @@ Module {
PropertyOptions {
name: "buildVariant"
- allowedValues: ['debug', 'release']
+ allowedValues: ['debug', 'release', 'profiling']
description: "name of the build variant"
}