path: root/config.tests
diff options
authorR.J.V. Bertin <>2017-06-01 23:59:55 +0200
committerRené J.V. Bertin <>2017-06-03 07:22:06 +0000
commit6e97d091e4d30566c14cf726f44d9e17f819c2c2 (patch)
tree6005d4f3f1a89c57091b4e99827f1201fd14b5e7 /config.tests
parentb7d76e533c76f7d9e9373d68f33ff9595fe8ce52 (diff)
define QT_NO_EXCEPTIONS reliably when using Clang
Clang's definition of the __EXCEPTIONS macro is inconsistent across platforms. When compiling for Darwin, Clang 3.6 and newer will set the token when exceptions are enabled in either C++ or ObjC. This change adds the reliable check described in the Clang 3.6 release notes to ensure that QT_NO_EXCEPTIONS is defined when required. The check requires the use of the Clang-specific __has_feature() syntax for which a new proxy macro QT_HAS_FEATURE(x) is added in qcompilerdetection.h Task-number: QTBUG-61034 Change-Id: Ie7b482dfa1a4a5b700a6b97562c26b626be1fc04 Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'config.tests')
0 files changed, 0 insertions, 0 deletions