diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-01-06 12:05:32 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-01-16 10:29:09 +0000 |
commit | 2d489c9fd50c872713b6fc2e001f474f2a6c93e7 (patch) | |
tree | b9a09302c37ded7f98ebee3e2770cc6dc3654ce7 /qbs-resources | |
parent | 46bbc19e2c70fe71959c30df3e1a4409b8e93e7c (diff) |
Enable QT_STRICT_ITERATORS in debug mode
This can help us find subtle problems in that area.
Change-Id: Ie36faeeb11c2faca16809bce12a643edd8658008
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'qbs-resources')
-rw-r--r-- | qbs-resources/imports/QbsProduct.qbs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qbs-resources/imports/QbsProduct.qbs b/qbs-resources/imports/QbsProduct.qbs index d882852df..7605ba783 100644 --- a/qbs-resources/imports/QbsProduct.qbs +++ b/qbs-resources/imports/QbsProduct.qbs @@ -10,6 +10,8 @@ Product { var res = ["QT_NO_CAST_FROM_ASCII", "QT_NO_PROCESS_COMBINED_ARGUMENT_START"]; if (qbs.toolchain.contains("msvc")) res.push("_SCL_SECURE_NO_WARNINGS"); + if (qbs.enableDebugCode) + res.push("QT_STRICT_ITERATORS"); return res; } cpp.enableExceptions: true |