diff --git a/SwiftCompilerSources/CMakeLists.txt b/SwiftCompilerSources/CMakeLists.txt index 063e1410b2a88..90548455d45e0 100644 --- a/SwiftCompilerSources/CMakeLists.txt +++ b/SwiftCompilerSources/CMakeLists.txt @@ -99,6 +99,7 @@ function(add_swift_compiler_modules_library name) ${ARGN}) set(swift_compile_options + "-color-diagnostics" "-Xfrontend" "-validate-tbd-against-ir=none" "-Xfrontend" "-enable-experimental-cxx-interop" "-Xfrontend" "-disable-target-os-checking" diff --git a/cmake/modules/AddPureSwift.cmake b/cmake/modules/AddPureSwift.cmake index f2569159bf64f..14abcd1690e60 100644 --- a/cmake/modules/AddPureSwift.cmake +++ b/cmake/modules/AddPureSwift.cmake @@ -57,6 +57,10 @@ function(_add_host_swift_compile_options name) target_compile_options(${name} PRIVATE $<$:-target;${SWIFT_HOST_TRIPLE}>) _add_host_variant_swift_sanitizer_flags(${name}) + + target_compile_options(${name} PRIVATE + $<$:-color-diagnostics> + ) endfunction() function(_set_pure_swift_link_flags name relpath_to_lib_dir)