summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-07-26 14:09:17 +0800
committerruki <[email protected]>2016-07-26 14:09:17 +0800
commitbb3d9a3df9acfb93f9b42a7d591868e9e4eb136b (patch)
tree4a63ab7061199d8c3c0494256c4cf5184deaf8ca
parent6e92472b681d01079a564feb7820fac902f3caf5 (diff)
fix flags checker bug
-rw-r--r--xmake/core/tool/compiler.lua20
1 files changed, 18 insertions, 2 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua
index 849a380cb..25061d322 100644
--- a/xmake/core/tool/compiler.lua
+++ b/xmake/core/tool/compiler.lua
@@ -392,14 +392,30 @@ end
function compiler:language(stdname)
-- make it
- return self:_tool().language(stdname)
+ local flags = self:_tool().language(stdname)
+
+ -- check it
+ if self:check(flags) then
+ return flags
+ end
+
+ -- not support
+ return ""
end
-- make the vector extension flag
function compiler:vectorext(extension)
-- make it
- return self:_tool().vectorext(extension)
+ local flags = self:_tool().vectorext(extension)
+
+ -- check it
+ if self:check(flags) then
+ return flags
+ end
+
+ -- not support
+ return ""
end
-- make the optimize flag