@@ -45,29 +45,24 @@ function(libomp_check_architecture_flag flag retval)
45
45
set (${retval} ${${retval}} PARENT_SCOPE )
46
46
endfunction ()
47
47
48
- # Checking C, CXX, Linker Flags
48
+ # Checking CXX, Linker Flags
49
49
check_cxx_compiler_flag (-fno-exceptions LIBOMP_HAVE_FNO_EXCEPTIONS_FLAG )
50
50
check_cxx_compiler_flag (-fno-rtti LIBOMP_HAVE_FNO_RTTI_FLAG )
51
- check_cxx_compiler_flag (-Wcast-qual LIBOMP_HAVE_WCAST_QUAL_FLAG )
52
- check_c_compiler_flag (-Wunused-function LIBOMP_HAVE_WNO_UNUSED_FUNCTION_FLAG )
53
- check_c_compiler_flag (-Wunused-local-typedef LIBOMP_HAVE_WNO_UNUSED_LOCAL_TYPEDEF_FLAG )
54
- check_c_compiler_flag (-Wunused-value LIBOMP_HAVE_WNO_UNUSED_VALUE_FLAG )
55
- check_c_compiler_flag (-Wunused-variable LIBOMP_HAVE_WNO_UNUSED_VARIABLE_FLAG )
56
- check_c_compiler_flag (-Wswitch LIBOMP_HAVE_WNO_SWITCH_FLAG )
57
- check_c_compiler_flag (-Wcovered-switch-default LIBOMP_HAVE_WNO_COVERED_SWITCH_DEFAULT_FLAG )
58
- check_c_compiler_flag (-Wdeprecated-register LIBOMP_HAVE_WNO_DEPRECATED_REGISTER_FLAG )
59
- check_c_compiler_flag (-Wsign-compare LIBOMP_HAVE_WNO_SIGN_COMPARE_FLAG )
60
- check_c_compiler_flag (-Wgnu-anonymous-struct LIBOMP_HAVE_WNO_GNU_ANONYMOUS_STRUCT_FLAG )
61
- check_c_compiler_flag (-Wunknown-pragmas LIBOMP_HAVE_WNO_UNKNOWN_PRAGMAS_FLAG )
62
- check_c_compiler_flag (-Wmissing-field-initializers LIBOMP_HAVE_WNO_MISSING_FIELD_INITIALIZERS_FLAG )
63
- check_c_compiler_flag (-Wmissing-braces LIBOMP_HAVE_WNO_MISSING_BRACES_FLAG )
64
- check_c_compiler_flag (-Wcomment LIBOMP_HAVE_WNO_COMMENT_FLAG )
65
- check_c_compiler_flag (-Wself-assign LIBOMP_HAVE_WNO_SELF_ASSIGN_FLAG )
66
- check_c_compiler_flag (-Wvla-extension LIBOMP_HAVE_WNO_VLA_EXTENSION_FLAG )
67
- check_c_compiler_flag (-Wformat-pedantic LIBOMP_HAVE_WNO_FORMAT_PEDANTIC_FLAG )
68
- check_c_compiler_flag (-Wstringop-overflow=0 LIBOMP_HAVE_WSTRINGOP_OVERFLOW_FLAG )
69
- check_c_compiler_flag (-msse2 LIBOMP_HAVE_MSSE2_FLAG )
70
- check_c_compiler_flag (-ftls-model=initial-exec LIBOMP_HAVE_FTLS_MODEL_FLAG )
51
+ check_cxx_compiler_flag (-Wno-class-memaccess LIBOMP_HAVE_WNO_CLASS_MEMACCESS_FLAG )
52
+ check_cxx_compiler_flag (-Wno-covered-switch-default LIBOMP_HAVE_WNO_COVERED_SWITCH_DEFAULT_FLAG )
53
+ check_cxx_compiler_flag (-Wno-frame-address LIBOMP_HAVE_WNO_FRAME_ADDRESS_FLAG )
54
+ check_cxx_compiler_flag (-Wno-implicit-fallthrough LIBOMP_HAVE_WNO_IMPLICIT_FALLTHROUGH_FLAG )
55
+ check_cxx_compiler_flag (-Wno-int-in-bool-context LIBOMP_HAVE_WNO_INT_IN_BOOL_CONTEXT_FLAG )
56
+ check_cxx_compiler_flag (-Wno-missing-braces LIBOMP_HAVE_WNO_MISSING_BRACES_FLAG )
57
+ check_cxx_compiler_flag (-Wno-parentheses LIBOMP_HAVE_WNO_PARENTHESES_FLAG )
58
+ check_cxx_compiler_flag (-Wno-strict-aliasing LIBOMP_HAVE_WNO_STRICT_ALIASING_FLAG )
59
+ check_cxx_compiler_flag (-Wstringop-overflow=0 LIBOMP_HAVE_WSTRINGOP_OVERFLOW_FLAG )
60
+ check_cxx_compiler_flag (-Wno-stringop-truncation LIBOMP_HAVE_WNO_STRINGOP_TRUNCATION_FLAG )
61
+ check_cxx_compiler_flag (-Wno-switch LIBOMP_HAVE_WNO_SWITCH_FLAG )
62
+ check_cxx_compiler_flag (-Wno-uninitialized LIBOMP_HAVE_WNO_UNINITIALIZED_FLAG )
63
+ check_cxx_compiler_flag (-Wno-unused-but-set-variable LIBOMP_HAVE_WNO_UNUSED_BUT_SET_VARIABLE_FLAG )
64
+ check_cxx_compiler_flag (-msse2 LIBOMP_HAVE_MSSE2_FLAG )
65
+ check_cxx_compiler_flag (-ftls-model=initial-exec LIBOMP_HAVE_FTLS_MODEL_FLAG )
71
66
libomp_check_architecture_flag (-mmic LIBOMP_HAVE_MMIC_FLAG )
72
67
libomp_check_architecture_flag (-m32 LIBOMP_HAVE_M32_FLAG )
73
68
if (WIN32 )
@@ -79,7 +74,7 @@ if(WIN32)
79
74
check_cxx_compiler_flag (/arch:SSE2 LIBOMP_HAVE_ARCH_SSE2_FLAG )
80
75
check_cxx_compiler_flag (/Qsafeseh LIBOMP_HAVE_QSAFESEH_FLAG )
81
76
endif ()
82
- check_c_compiler_flag (-mrtm LIBOMP_HAVE_MRTM_FLAG )
77
+ check_cxx_compiler_flag (-mrtm LIBOMP_HAVE_MRTM_FLAG )
83
78
# It is difficult to create a dummy masm assembly file
84
79
# and then check the MASM assembler to see if these flags exist and work,
85
80
# so we assume they do for Windows.
0 commit comments