Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.8.0, 5.9.0 RC
-
None
-
any using clang++
-
d1db78e4ae48207eaeb91e2b559110a410518bd8
Description
qglobal.h auto-defines QT_NO_EXCEPTIONS when GCC is used with `-fno-exceptions` but fails to do so with clang.
According to
http://releases.llvm.org/3.6.0/tools/clang/docs/ReleaseNotes.html#the-exceptions-macro this is possible with the following preprocessor contraption (which works for me):
`
defined(Q_CC_CLANG) && !(defined(__EXCEPTIONS) && __has_feature(cxx_exceptions)))`