diff options
| author | ruki <[email protected]> | 2016-05-24 20:42:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-05-24 20:42:12 +0800 |
| commit | 487eda865797da4fc81ba8ba8ec932dc2fb64cec (patch) | |
| tree | a731cdefc5607d65e03219d1e1625f62518eb52c /xmake/core/tool/tool.lua | |
| parent | e932acd1440734e5977bd23176c9ac7a133f6b53 (diff) | |
impl extractor using ar
Diffstat (limited to 'xmake/core/tool/tool.lua')
| -rw-r--r-- | xmake/core/tool/tool.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua index 07f022a62..3846dc499 100644 --- a/xmake/core/tool/tool.lua +++ b/xmake/core/tool/tool.lua @@ -122,7 +122,7 @@ function tool._find(root, name) end -- load the given tool from the given shell name -function tool._load(shellname) +function tool._load(shellname, kind) -- get it directly from cache dirst tool._TOOLS = tool._TOOLS or {} @@ -166,7 +166,7 @@ function tool._load(shellname) -- init the tool module if module.init then - module.init(shellname) + module.init(shellname, kind) end -- save tool to the cache @@ -220,7 +220,7 @@ function tool.load(kind) end -- load it - return tool._load(shellname) + return tool._load(shellname, kind) end -- check the tool and return the absolute path if exists |
