summaryrefslogtreecommitdiff
path: root/xmake/core/tool/toolchain.lua
diff options
context:
space:
mode:
authorwtz <[email protected]>2023-07-19 12:35:52 +0800
committerwtz <[email protected]>2023-07-19 12:35:52 +0800
commitf75224a8435d0eb9cdda79f8bc571eeef25a8e33 (patch)
tree278e00b17c8f5558df1c1a21f1204078ea62a58f /xmake/core/tool/toolchain.lua
parentca83e9a78b7f2d45e833fa705c880867ad2381c6 (diff)
Fix grammar
Diffstat (limited to 'xmake/core/tool/toolchain.lua')
-rw-r--r--xmake/core/tool/toolchain.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua
index b230bf674..4831bce5c 100644
--- a/xmake/core/tool/toolchain.lua
+++ b/xmake/core/tool/toolchain.lua
@@ -345,7 +345,7 @@ function _instance:_on_load()
return on_load
end
--- do load, @note we need load it repeatly for each architectures
+-- do load, @note we need to load it repeatly for each architectures
function _instance:_load()
local info = self:info()
if not info:get("__loaded") and not info:get("__loading") then
@@ -456,7 +456,7 @@ function _instance:_checktool(toolkind, toolpath)
if toolpath then
local pos = toolpath:find('@', 1, true)
if pos then
- -- we need ignore valid path with `@`, e.g. /usr/local/opt/[email protected]/bin/go
+ -- we need to ignore valid path with `@`, e.g. /usr/local/opt/[email protected]/bin/go
-- https://github.com/xmake-io/xmake/issues/2853
local prefix = toolpath:sub(1, pos - 1)
if prefix and not prefix:find("[/\\]") then
@@ -698,7 +698,7 @@ function toolchain.load_fromfile(filepath, opt)
local scope_opt = {interpreter = toolchain._interpreter(), deduplicate = true, enable_filter = true}
local info = scopeinfo.new("toolchain", fileinfo.info, scope_opt)
local instance = toolchain.load_withinfo(fileinfo.name, info, opt)
- -- we need skip check
+ -- we need to skip check
instance._CHECKED = true
return instance
end
@@ -753,7 +753,7 @@ function toolchain.tool(toolchains, toolkind, opt)
if program and type(program) == "string" then
local pos = program:find('@', 1, true)
if pos then
- -- we need ignore valid path with `@`, e.g. /usr/local/opt/[email protected]/bin/go
+ -- we need to ignore valid path with `@`, e.g. /usr/local/opt/[email protected]/bin/go
-- https://github.com/xmake-io/xmake/issues/2853
local prefix = program:sub(1, pos - 1)
if prefix and not prefix:find("[/\\]") then