diff options
| author | ruki <[email protected]> | 2016-07-26 14:09:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-07-26 14:09:17 +0800 |
| commit | bb3d9a3df9acfb93f9b42a7d591868e9e4eb136b (patch) | |
| tree | 4a63ab7061199d8c3c0494256c4cf5184deaf8ca | |
| parent | 6e92472b681d01079a564feb7820fac902f3caf5 (diff) | |
fix flags checker bug
| -rw-r--r-- | xmake/core/tool/compiler.lua | 20 |
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 |
