Skip to content

Commit dda9753

Browse files
authored
Merge pull request #2387 from rintaro/cmake-color-diagnostics
2 parents cc95102 + 7058849 commit dda9753

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/modules/AddSwiftHostLibrary.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ function(add_swift_syntax_library name)
9292
$<$<COMPILE_LANGUAGE:Swift>:-wmo>)
9393
endif()
9494

95+
target_compile_options(${name} PRIVATE
96+
$<$<COMPILE_LANGUAGE:Swift>:-color-diagnostics>
97+
)
98+
9599
if(LLVM_USE_LINKER)
96100
target_link_options(${name} PRIVATE
97101
"-use-ld=${LLVM_USE_LINKER}"

0 commit comments

Comments
 (0)