Skip to content

Commit

Permalink
Cmake: add compiler option in a more idiomatic way
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183995 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Arnaud-de-Grandmaison committed Jun 14, 2013
1 parent dafd1a6 commit 4ebf543
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmake/modules/HandleLLVMOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ add_llvm_definitions( -D__STDC_FORMAT_MACROS )
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_GENERATOR STREQUAL "Ninja")
append("-fcolor-diagnostics" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
if (UNIX AND CMAKE_GENERATOR STREQUAL "Ninja")
add_flag_if_supported("-fcolor-diagnostics")
endif()

0 comments on commit 4ebf543

Please sign in to comment.