We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dffdaa0 + f446dd0 commit a43bebbCopy full SHA for a43bebb
cmake/modules/SwiftSharedCMakeConfig.cmake
@@ -284,6 +284,11 @@ macro(swift_common_cxx_warnings)
284
# Check for '-fapplication-extension'. On OS X/iOS we wish to link all
285
# dynamic libraries with this flag.
286
check_cxx_compiler_flag("-fapplication-extension" CXX_SUPPORTS_FAPPLICATION_EXTENSION)
287
+
288
+ # Disable C4068: unknown pragma. This means that MSVC doesn't report hundreds of warnings across
289
+ # the repository for IDE features such as #pragma mark "Title".
290
+ check_cxx_compiler_flag("/wd4068" CXX_SUPPORTS_UNKNOWN_PRAGMA_FLAG)
291
+ append_if(CXX_SUPPORTS_UNKNOWN_PRAGMA_FLAG "/wd4068" CMAKE_CXX_FLAGS)
292
endmacro()
293
294
# Like 'llvm_config()', but uses libraries from the selected build
0 commit comments