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 4986105 + 0cfb54d commit f648d97Copy full SHA for f648d97
stdlib/public/CMakeLists.txt
@@ -18,7 +18,11 @@ list(APPEND SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS "-Xfrontend" "-verify-syntax-tree"
18
19
# Build the runtime with -Wall to catch, e.g., uninitialized variables
20
# warnings.
21
-list(APPEND SWIFT_RUNTIME_CXX_FLAGS "-Wall")
+if(SWIFT_COMPILER_IS_MSVC_LIKE)
22
+ list(APPEND SWIFT_RUNTIME_CXX_FLAGS "/W3")
23
+else()
24
+ list(APPEND SWIFT_RUNTIME_CXX_FLAGS "-Wall")
25
+endif()
26
27
set(SWIFT_RUNTIME_CORE_CXX_FLAGS "${SWIFT_RUNTIME_CXX_FLAGS}")
28
set(SWIFT_RUNTIME_CORE_LINK_FLAGS "${SWIFT_RUNTIME_LINK_FLAGS}")
0 commit comments