summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/sdcc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/sdcc.lua')
-rw-r--r--xmake/modules/core/tools/sdcc.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/sdcc.lua b/xmake/modules/core/tools/sdcc.lua
index 82d6cd78a..0153ed652 100644
--- a/xmake/modules/core/tools/sdcc.lua
+++ b/xmake/modules/core/tools/sdcc.lua
@@ -126,11 +126,12 @@ function nf_language(self, stdname)
if self:has_flags(v, "cxflags") then
result = v
maps[stdname] = result
- break
+ return result
end
end
+ else
+ return result
end
- return result
end
-- make the define flag