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/modules/private/utils | |
| parent | ca83e9a78b7f2d45e833fa705c880867ad2381c6 (diff) | |
Fix grammar
Diffstat (limited to 'xmake/modules/private/utils')
| -rw-r--r-- | xmake/modules/private/utils/batchcmds.lua | 8 | ||||
| -rw-r--r-- | xmake/modules/private/utils/rule_groups.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/utils/statistics.lua | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/xmake/modules/private/utils/batchcmds.lua b/xmake/modules/private/utils/batchcmds.lua index 5948fe0cf..48d169b22 100644 --- a/xmake/modules/private/utils/batchcmds.lua +++ b/xmake/modules/private/utils/batchcmds.lua @@ -236,7 +236,7 @@ function batchcmds:compile(sourcefiles, objectfile, opt) opt = opt or {} opt.target = self._TARGET - -- wrap path for sourcefiles, because we need translate path for project generator + -- wrap path for sourcefiles, because we need to translate path for project generator if type(sourcefiles) == "table" then local sourcefiles_wrap = {} for _, sourcefile in ipairs(sourcefiles) do @@ -274,7 +274,7 @@ function batchcmds:compilev(argv, opt) compiler_inst = compiler.load(sourcekind, opt) end - -- we need translate path for the project generator + -- we need to translate path for the project generator for idx, item in ipairs(argv) do if type(item) == "string" then if item:startswith("-I") then @@ -299,7 +299,7 @@ function batchcmds:link(objectfiles, targetfile, opt) opt = opt or {} opt.target = target - -- wrap path for objectfiles, because we need translate path for project generator + -- wrap path for objectfiles, because we need to translate path for project generator local objectfiles_wrap = {} for _, objectfile in ipairs(objectfiles) do table.insert(objectfiles_wrap, path(objectfile)) @@ -310,7 +310,7 @@ function batchcmds:link(objectfiles, targetfile, opt) local linker_inst = target and target:linker() or linker.load(opt.targetkind, opt.sourcekinds, opt) local program, argv = linker_inst:linkargv(objectfiles, path(targetfile), opt) - -- we need translate path for the project generator + -- we need to translate path for the project generator for idx, item in ipairs(argv) do if type(item) == "string" then if item:startswith("-L") then diff --git a/xmake/modules/private/utils/rule_groups.lua b/xmake/modules/private/utils/rule_groups.lua index f8f8181ec..ae7279e78 100644 --- a/xmake/modules/private/utils/rule_groups.lua +++ b/xmake/modules/private/utils/rule_groups.lua @@ -25,7 +25,7 @@ import("core.project.config") import("core.project.project") -- get rule --- @note we need get rule from target first, because we maybe will inject and replace builtin rule in target +-- @note we need to get rule from target first, because we maybe will inject and replace builtin rule in target function get_rule(target, rulename) local ruleinst = assert(target:rule(rulename) or project.rule(rulename) or rule.rule(rulename), "unknown rule: %s", rulename) return ruleinst diff --git a/xmake/modules/private/utils/statistics.lua b/xmake/modules/private/utils/statistics.lua index 7619526a5..615cfce79 100644 --- a/xmake/modules/private/utils/statistics.lua +++ b/xmake/modules/private/utils/statistics.lua @@ -68,7 +68,7 @@ function post() return end - -- mark as posted first, avoid to post it repeatly + -- mark as posted first, avoid posting it repeatly io.writefile(markfile, "ok") -- init argument list |
