llvm.org GIT mirror llvm / dec5f39
cmake: Fix color diags under ninja if the compiler is "AppleClang" Apparently cmake differentiates between Clang and AppleClang, and we fail to color our diagnostics if you have the latter. Fix that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271442 91177308-0d34-0410-b5e6-96231b3b80d8 Justin Bogner 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
558558
559559 # clang doesn't print colored diagnostics when invoked from Ninja
560560 if (UNIX AND
561 CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
561 CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND
562562 CMAKE_GENERATOR STREQUAL "Ninja")
563563 append("-fcolor-diagnostics" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
564564 endif()