headerscheck: enable exceptions for MSVC
MSVC's own headers trigger the C4530 warning just by being included. C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.33.31629\include\chrono(2206): error C2220: the following warning is treated as an error warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc Change-Id: Ieab617d69f3b4b54ab30fffd175c02c23f677d75 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
3bf5b5f894
commit
ce5eaeea59
@ -182,7 +182,7 @@ function(qt_internal_add_headersclean_target module_target module_headers)
|
|||||||
)
|
)
|
||||||
set(input_header_path_type ABSOLUTE)
|
set(input_header_path_type ABSOLUTE)
|
||||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||||
set(hcleanFLAGS -std:c++latest -Zc:__cplusplus -Za -WX -W3)
|
set(hcleanFLAGS -std:c++latest -Zc:__cplusplus -Za -WX -W3 -EHsc)
|
||||||
|
|
||||||
# cl.exe needs a source path
|
# cl.exe needs a source path
|
||||||
get_filename_component(source_path "${QT_MKSPECS_DIR}/features/data/dummy.cpp" REALPATH)
|
get_filename_component(source_path "${QT_MKSPECS_DIR}/features/data/dummy.cpp" REALPATH)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user