diff options
| -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 |
