summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2016-06-01 23:29:26 +0000
committerJustin Bogner <mail@justinbogner.com>2016-06-01 23:29:26 +0000
commit13440b924acb71004a652e9da257b641f1685010 (patch)
tree5c940bb02c6a140fb83be2a505fd02fa9c49ea0c /llvm
parent7f48be03a687d5bd6f7479df0156a5edaf32cc96 (diff)
downloadbcm5719-llvm-13440b924acb71004a652e9da257b641f1685010.tar.gz
bcm5719-llvm-13440b924acb71004a652e9da257b641f1685010.zip
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. llvm-svn: 271442
Diffstat (limited to 'llvm')
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index d61f7477252..75918cf7af1 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -559,7 +559,7 @@ add_llvm_definitions( -D__STDC_LIMIT_MACROS )
# clang doesn't print colored diagnostics when invoked from Ninja
if (UNIX AND
- CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
+ CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND
CMAKE_GENERATOR STREQUAL "Ninja")
append("-fcolor-diagnostics" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
endif()
OpenPOWER on IntegriCloud