mirror of https://github.com/qt/qtbase.git
Do not define _HAS_EXCEPTIONS=0 in MSVC builds
This definition causes a build error if concrt.h is included.
According to Microsoft [1], this macro is unsupported. It was added in
f5908363
to silence compiler warnings that are generated when exceptions
are turned off and certain STL headers are included.
We specifically disable the warnings in question now.
[1] https://blogs.msdn.microsoft.com/vcblog/2015/07/14/stl-fixes-in-vs-2015-part-2/
Task-number: QTBUG-63409
Change-Id: I567d5d46292fbd7898394e217bb0987fbcdca9de
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
f03cd9a7bc
commit
16f144db29
|
@ -37,7 +37,7 @@ greaterThan(QMAKE_MSC_VER, 1699) {
|
|||
# Visual Studio 2012 (11.0) / Visual C++ 17.0 and up
|
||||
MSVC_VER = 11.0
|
||||
COMPAT_MKSPEC = win32-msvc2012
|
||||
QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -D_HAS_EXCEPTIONS=0
|
||||
QMAKE_CXXFLAGS_EXCEPTIONS_OFF = /wd4530 /wd4577
|
||||
QT_CONFIG += c++11
|
||||
CONFIG += c++11
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ QMAKE_CXXFLAGS_STL_OFF =
|
|||
QMAKE_CXXFLAGS_RTTI_ON = -GR
|
||||
QMAKE_CXXFLAGS_RTTI_OFF =
|
||||
QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHsc
|
||||
QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -D_HAS_EXCEPTIONS=0
|
||||
QMAKE_CXXFLAGS_EXCEPTIONS_OFF = /wd4530 /wd4577
|
||||
|
||||
QMAKE_INCDIR =
|
||||
|
||||
|
|
Loading…
Reference in New Issue