diff options
| author | ruki <[email protected]> | 2018-12-20 23:46:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-12-20 16:36:22 +0800 |
| commit | 38315771588ae29bacc20cae6a16fa0d4d8a2be5 (patch) | |
| tree | 063f662f1e8c22b39864e3b0d3c94355c3b633c8 /xmake/core/tool/tool.lua | |
| parent | a9f3eac5faf29e1a60b68ec2ac7ec791ef7549ee (diff) | |
improve compiler and linker
Diffstat (limited to 'xmake/core/tool/tool.lua')
| -rw-r--r-- | xmake/core/tool/tool.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua index d4380bec9..7b1bcaed3 100644 --- a/xmake/core/tool/tool.lua +++ b/xmake/core/tool/tool.lua @@ -109,13 +109,13 @@ function _instance:get(name) end -- has the given flag? -function _instance:has_flags(flag) +function _instance:has_flags(flags) -- import has_flags() self._has_flags = self._has_flags or import("lib.detect.has_flags") -- has flags? - return self._has_flags(self:name(), flag, {program = self:program(), toolkind = self:kind()}) + return self._has_flags(self:name(), flags, {program = self:program(), toolkind = self:kind()}) end -- load the given tool from the given kind |
