From 6cb8b7ca86ed9f9eb86cc0a5c48c752331efb420 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 20 Feb 2020 23:49:42 +0800 Subject: enable color8 for gcc/clang diagnostics --- xmake/modules/core/tools/gcc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index a32311454..105cc3ad1 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -360,7 +360,7 @@ end function _has_color_diagnostics(self) local colors_diagnostics = _g._HAS_COLOR_DIAGNOSTICS if colors_diagnostics == nil then - if io.isatty() and colors.color256() then + if io.isatty() and (colors.color8() or colors.color256()) then local theme = colors.theme() if theme and theme:name() ~= "plain" then colors_diagnostics = self:has_flags("-fcolor-diagnostics", "cxflags") or false -- cgit v1.3.1