File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
36
36
list (APPEND SWIFT_RUNTIME_CORE_CXX_FLAGS "-xc++" )
37
37
endif ()
38
38
39
+ # Use the new diagnostic formatter.
40
+ list (APPEND SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS "-diagnostic-style" "swift" )
41
+
39
42
# We should avoid non-literals in format strings, or appropriately mark
40
43
# functions.
41
44
check_cxx_compiler_flag ("-Wformat-nonliteral -Werror=format-nonliteral" CXX_SUPPORTS_FORMAT_NONLITERAL_WARNING )
Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
148
148
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
149
149
-parse-stdlib
150
150
-Xfrontend -enable-experimental-concurrency
151
+ -diagnostic-style swift
151
152
${SWIFT_RUNTIME_CONCURRENCY_SWIFT_FLAGS}
152
153
${swift_concurrency_options}
153
154
INSTALL_IN_COMPONENT ${swift_concurrency_install_component}
You can’t perform that action at this time.
0 commit comments