-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Done
-
Affects Version/s: 5.8.0, 5.9.0 RC
-
Fix Version/s: None
-
Component/s: Core: Containers and Algorithms, Core: Other
-
Labels:None
-
Environment:any using clang++
-
Commits:d1db78e4ae48207eaeb91e2b559110a410518bd8
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)))`