diff options
| author | ruki <[email protected]> | 2020-09-28 23:09:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-09-28 23:09:23 +0800 |
| commit | 0c52f3a6ab4397c5be94c3293f4ae20d6b7a8b94 (patch) | |
| tree | c6bacf9de25b6af942b5e7ac83bca8aa3cf1e5ce /xmake/core/tool/toolchain.lua | |
| parent | 34e395ad9281d17382b1d1c5a4e7828a259720f0 (diff) | |
rename some pathes to paths
Diffstat (limited to 'xmake/core/tool/toolchain.lua')
| -rw-r--r-- | xmake/core/tool/toolchain.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua index c3373b27d..d8de03f8c 100644 --- a/xmake/core/tool/toolchain.lua +++ b/xmake/core/tool/toolchain.lua @@ -155,9 +155,9 @@ end -- get the program and name of the given tool kind function _instance:tool(toolkind) - local toolpathes = self:get("toolset." .. toolkind) - if toolpathes then - for _, toolpath in ipairs(table.wrap(toolpathes)) do + local toolpaths = self:get("toolset." .. toolkind) + if toolpaths then + for _, toolpath in ipairs(table.wrap(toolpaths)) do local program, toolname = self:_checktool(toolkind, toolpath) if program then return program, toolname @@ -290,7 +290,7 @@ function _instance:_checktool(toolkind, toolpath) -- find tool program local program, toolname - local tool = find_tool(toolpath, {program = toolpath, pathes = self:bindir(), envs = self:get("runenvs")}) + local tool = find_tool(toolpath, {program = toolpath, paths = self:bindir(), envs = self:get("runenvs")}) if tool then program = tool.program toolname = tool.name |
