summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-28 00:48:18 +0800
committerruki <[email protected]>2021-01-28 00:48:18 +0800
commitc5615fbc82554d5e85dbc02da493bb59df2cd492 (patch)
tree2287eb98f6c355735c220143ae5657874f6d5db8 /xmake/modules/core/tools/gcc.lua
parentd98169322f86c2a95d6b4e62a56918414fa1349d (diff)
add tty.has_color256
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index bbe3f0333..4be53c113 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -361,7 +361,7 @@ end
function _has_color_diagnostics(self)
local colors_diagnostics = _g._HAS_COLOR_DIAGNOSTICS
if colors_diagnostics == nil then
- if io.isatty() and (tty.has_color8() or colors.color256()) then
+ if io.isatty() and (tty.has_color8() or tty.has_color256()) then
local theme = colors.theme()
if theme and theme:name() ~= "plain" then
-- for gcc