diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2020-05-14 18:18:26 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-05-18 12:02:05 +0000 |
commit | 615951b3cd4fefd75f2c9fb6ef95a1e6fbb5c325 (patch) | |
tree | 4cdba29a90bc5a1f7be968d52403df578cec260c | |
parent | f09f882d70b39fd2983b81446f25bdd46204ac32 (diff) |
Add QT_NO_DEBUG macro when using "profiling" buildVariant
Otherwise, assertions are enabled which slows down the application
Change-Id: I63bf5428ff55f1245307d79f27dcd156e7ff79cc
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | share/qbs/module-providers/Qt/templates/core.qbs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/qbs/module-providers/Qt/templates/core.qbs b/share/qbs/module-providers/Qt/templates/core.qbs index f3bdf135a..cb9d60c6c 100644 --- a/share/qbs/module-providers/Qt/templates/core.qbs +++ b/share/qbs/module-providers/Qt/templates/core.qbs @@ -119,9 +119,9 @@ Module { qbs.targetOS.contains("darwin") ? ["objcpp"] : []) cpp.defines: { var defines = @defines@; - // ### QT_NO_DEBUG must be added if the current build variant is derived - // from the build variant "release" - if (!qbs.debugInformation) + // ### QT_NO_DEBUG must be added if the current build variant is not derived + // from the build variant "debug" + if (!qbs.enableDebugCode) defines.push("QT_NO_DEBUG"); if (!enableKeywords) defines.push("QT_NO_KEYWORDS"); |