File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -304,11 +304,6 @@ macro(swift_common_unified_build_config product)
304
304
"${CMARK_BUILD_INCLUDE_DIR} " )
305
305
306
306
include (AddSwiftTableGen ) # This imports TableGen from LLVM.
307
-
308
- check_cxx_compiler_flag ("-Werror -Wnested-anon-types" CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG )
309
- if (CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG )
310
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-nested-anon-types" )
311
- endif ()
312
307
endmacro ()
313
308
314
309
# Common cmake project config for additional warnings.
@@ -337,6 +332,11 @@ macro(swift_common_cxx_warnings)
337
332
check_cxx_compiler_flag ("-Werror -Woverloaded-virtual" CXX_SUPPORTS_OVERLOADED_VIRTUAL )
338
333
append_if (CXX_SUPPORTS_OVERLOADED_VIRTUAL "-Woverloaded-virtual" CMAKE_CXX_FLAGS )
339
334
335
+ check_cxx_compiler_flag ("-Werror -Wnested-anon-types" CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG )
336
+ if (CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG )
337
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-nested-anon-types" )
338
+ endif ()
339
+
340
340
# Check for '-fapplication-extension'. On OS X/iOS we wish to link all
341
341
# dynamic libraries with this flag.
342
342
check_cxx_compiler_flag ("-fapplication-extension" CXX_SUPPORTS_FAPPLICATION_EXTENSION )
You can’t perform that action at this time.
0 commit comments