diff options
| author | wtz <[email protected]> | 2023-07-19 12:35:52 +0800 |
|---|---|---|
| committer | wtz <[email protected]> | 2023-07-19 12:35:52 +0800 |
| commit | f75224a8435d0eb9cdda79f8bc571eeef25a8e33 (patch) | |
| tree | 278e00b17c8f5558df1c1a21f1204078ea62a58f /xmake/core/tool/tool.lua | |
| parent | ca83e9a78b7f2d45e833fa705c880867ad2381c6 (diff) | |
Fix grammar
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 46e3e664b..45ac78a08 100644 --- a/xmake/core/tool/tool.lua +++ b/xmake/core/tool/tool.lua @@ -41,7 +41,7 @@ function _instance.new(kind, name, program, plat, arch, toolchain_inst) -- import "core.tools.xxx" local toolclass = nil if os.isfile(path.join(os.programdir(), "modules", "core", "tools", name .. ".lua")) then - toolclass = import("core.tools." .. name, {nocache = true}) -- @note we need create a tool instance with unique toolclass context (_g) + toolclass = import("core.tools." .. name, {nocache = true}) -- @note we need to create a tool instance with unique toolclass context (_g) end -- not found? @@ -202,7 +202,7 @@ function _instance:_sysflags(toolkind, flagkind) table.insert(sourceflags, flagkind) table.insert(sourceflags, "mxxflags") else - -- flagkind may be ldflags, we need ignore it + -- flagkind may be ldflags, we need to ignore it -- and we should use more precise flagkind, e.g. rcldflags instead of ldflags end end @@ -255,7 +255,7 @@ function tool.load(kind, opt) if program 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 |
