Skip to content

Commit 4673d63

Browse files
authored
Merge pull request #70271 from rintaro/cmake-swiftsrc-colordiag
2 parents a9df7d1 + 67af6a0 commit 4673d63

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

SwiftCompilerSources/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ function(add_swift_compiler_modules_library name)
9999
${ARGN})
100100

101101
set(swift_compile_options
102+
"-color-diagnostics"
102103
"-Xfrontend" "-validate-tbd-against-ir=none"
103104
"-Xfrontend" "-enable-experimental-cxx-interop"
104105
"-Xfrontend" "-disable-target-os-checking"

cmake/modules/AddPureSwift.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ function(_add_host_swift_compile_options name)
5757

5858
target_compile_options(${name} PRIVATE $<$<COMPILE_LANGUAGE:Swift>:-target;${SWIFT_HOST_TRIPLE}>)
5959
_add_host_variant_swift_sanitizer_flags(${name})
60+
61+
target_compile_options(${name} PRIVATE
62+
$<$<COMPILE_LANGUAGE:Swift>:-color-diagnostics>
63+
)
6064
endfunction()
6165

6266
function(_set_pure_swift_link_flags name relpath_to_lib_dir)

0 commit comments

Comments
 (0)