Win32: define _HAS_EXCEPTIONS as 0 when exceptions are off.
When this macro is not defined, a number of inline methods in the MSVC stl will throw exceptions. This in turn generates a warning when exceptions are not enabled on the compiler command-line. Change-Id: I5a57ec544bda0c75f04fdea9412b03107f9ff531 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
e531b46bed
commit
f59083636b
@ -55,7 +55,7 @@ QMAKE_CXXFLAGS_STL_OFF =
|
|||||||
QMAKE_CXXFLAGS_RTTI_ON = -GR
|
QMAKE_CXXFLAGS_RTTI_ON = -GR
|
||||||
QMAKE_CXXFLAGS_RTTI_OFF =
|
QMAKE_CXXFLAGS_RTTI_OFF =
|
||||||
QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHsc
|
QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHsc
|
||||||
QMAKE_CXXFLAGS_EXCEPTIONS_OFF =
|
QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -D_HAS_EXCEPTIONS=0
|
||||||
|
|
||||||
QMAKE_INCDIR =
|
QMAKE_INCDIR =
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ QMAKE_CXXFLAGS_STL_OFF =
|
|||||||
QMAKE_CXXFLAGS_RTTI_ON = -GR
|
QMAKE_CXXFLAGS_RTTI_ON = -GR
|
||||||
QMAKE_CXXFLAGS_RTTI_OFF =
|
QMAKE_CXXFLAGS_RTTI_OFF =
|
||||||
QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHsc
|
QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHsc
|
||||||
QMAKE_CXXFLAGS_EXCEPTIONS_OFF =
|
QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -D_HAS_EXCEPTIONS=0
|
||||||
|
|
||||||
QMAKE_INCDIR =
|
QMAKE_INCDIR =
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ QMAKE_CXXFLAGS_STL_OFF =
|
|||||||
QMAKE_CXXFLAGS_RTTI_ON = -GR
|
QMAKE_CXXFLAGS_RTTI_ON = -GR
|
||||||
QMAKE_CXXFLAGS_RTTI_OFF =
|
QMAKE_CXXFLAGS_RTTI_OFF =
|
||||||
QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHsc
|
QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHsc
|
||||||
QMAKE_CXXFLAGS_EXCEPTIONS_OFF =
|
QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -D_HAS_EXCEPTIONS=0
|
||||||
|
|
||||||
QMAKE_INCDIR =
|
QMAKE_INCDIR =
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user