summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.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/project/project.lua
parentca83e9a78b7f2d45e833fa705c880867ad2381c6 (diff)
Fix grammar
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index 81181c72d..3ac9ab7e2 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -375,7 +375,7 @@ function project._load_targets()
t._RULES[deprule:name()] = deprule
end
end
- -- we need ignore `@package/rulename`, it will be loaded later
+ -- we need to ignore `@package/rulename`, it will be loaded later
elseif not rulename:match("@.-/") then
return nil, string.format("unknown rule(%s) in target(%s)!", rulename, t:name())
end
@@ -387,7 +387,7 @@ function project._load_targets()
return nil, errors
end
- -- we need call on_load() before building deps/rules,
+ -- we need to call on_load() before building deps/rules,
-- so we can use `target:add("deps", "xxx")` to add deps in on_load
ok, errors = t:_load()
if not ok then
@@ -799,7 +799,7 @@ end
function project.name()
local name = project.get("project")
-- TODO multi project names? we only get the first name now.
- -- and we need improve it in the future.
+ -- and we need to improve it in the future.
if type(name) == "table" then
name = name[1]
end
@@ -1004,7 +1004,7 @@ end
-- get the given toolchain
function project.toolchain(name, opt)
- local toolchain_name = toolchain.parsename(name) -- we need ignore `@packagename`
+ local toolchain_name = toolchain.parsename(name) -- we need to ignore `@packagename`
local info = project._toolchains()[toolchain_name]
if info then
return toolchain.load_withinfo(name, info, opt)