From f7d079c1a5eef8d875b25e383132e6c114b7e48a Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 10 Oct 2021 22:39:04 +0800 Subject: fix languages --- xmake/modules/core/tools/cl.lua | 2 +- xmake/modules/core/tools/gcc.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 6181af7d9..9e9f38ab8 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -247,7 +247,7 @@ function nf_language(self, stdname) if self:has_flags(v, "cxflags") then result = v maps[stdname] = result - break + return result end end else diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index b9447a151..49998fec6 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -226,7 +226,7 @@ function nf_language(self, stdname) if self:has_flags(v, "cxflags") then result = v maps[stdname] = result - break + return result end end else -- cgit v1.3.1