File tree 3 files changed +8
-15
lines changed
3 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 19
19
20
20
- win_ver : ' 2022'
21
21
build_type : ' Debug'
22
- flags : ' /std:c++latest -msse2 /DTEST_LIBCXX_NEW'
22
+ flags : ' /std:c++latest /WX -msse2 /DTEST_LIBCXX_NEW'
23
23
24
24
runs-on : windows-${{ matrix.win_ver }}
25
25
Original file line number Diff line number Diff line change @@ -14,13 +14,17 @@ endif()
14
14
15
15
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
16
16
string (REGEX REPLACE "/W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} " )
17
- target_compile_options (momo_test PRIVATE /W4 /bigobj)
17
+ target_compile_options (momo_test PRIVATE /W4 /D_SCL_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_WARNINGS
18
+ /wd4127 /wd4458 /bigobj)
19
+ if (MSVC_VERSION EQUAL 1900)
20
+ target_compile_options (momo_test PRIVATE /wd4503 /wd4702)
21
+ endif ()
18
22
if (MSVC_VERSION GREATER_EQUAL 1910)
19
23
target_compile_options (momo_test PRIVATE /Zc:__cplusplus)
20
24
endif ()
21
25
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC" )
22
- target_compile_options (momo_test PRIVATE /W4 -Wold-style-cast -Wsign-conversion
23
- -Wno-unused-local-typedefs)
26
+ target_compile_options (momo_test PRIVATE /W4 /D_ITERATOR_DEBUG_LEVEL=0
27
+ -Wold-style-cast -Wsign-conversion - Wno-unused-local-typedefs)
24
28
elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU"
25
29
OR CMAKE_CXX_COMPILER_ID MATCHES "Clang"
26
30
OR CMAKE_CXX_COMPILER_ID MATCHES "Intel" )
Original file line number Diff line number Diff line change 14
14
15
15
#include " TestSettings.h"
16
16
17
- #ifdef TEST_MSVC
18
- # define _SCL_SECURE_NO_WARNINGS
19
- # define _CRT_SECURE_NO_WARNINGS
20
- # pragma warning (disable: 4127) // conditional expression is constant
21
- # pragma warning (disable: 4458) // declaration of '...' hides class member
22
- # if _MSC_VER == 1900
23
- # pragma warning (disable: 4503) // decorated name length exceeded, name was truncated
24
- # pragma warning (disable: 4702) // unreachable code
25
- # endif
26
- #endif
27
-
28
17
#ifdef _WIN32
29
18
# ifdef TEST_LIBCXX_NEW
30
19
# define NOMINMAX
You can’t perform that action at this time.
0 commit comments