summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-10 21:33:03 +0800
committerruki <[email protected]>2021-10-10 21:33:03 +0800
commit0594b7cddec091cc9b91e06cf2ee61e4e671b595 (patch)
treee54510e56bcf2bd962fede63c724fe84603c90e9
parent0fe9bb8a7018b7b183873c3dcd8856bf7ea6b6c9 (diff)
fix languages
-rw-r--r--xmake/modules/core/tools/cl.lua3
-rw-r--r--xmake/modules/core/tools/gcc.lua3
2 files changed, 4 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index efea29a14..6181af7d9 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -250,8 +250,9 @@ function nf_language(self, stdname)
break
end
end
+ else
+ return result
end
- return result
end
-- make the define flag
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 99938e59a..b9447a151 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -229,8 +229,9 @@ function nf_language(self, stdname)
break
end
end
+ else
+ return result
end
- return result
end
-- make the define flag