Skip to content

Commit 7058849

Browse files
committed
[CMake] Color diagnostics
1 parent 06b57f3 commit 7058849

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)