summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support
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/rules/c++/modules/modules_support
parentca83e9a78b7f2d45e833fa705c880867ad2381c6 (diff)
Fix grammar
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
-rw-r--r--xmake/rules/c++/modules/modules_support/clang.lua8
-rw-r--r--xmake/rules/c++/modules/modules_support/common.lua2
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc.lua2
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc.lua4
4 files changed, 8 insertions, 8 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua
index 888f0f334..40bcec06e 100644
--- a/xmake/rules/c++/modules/modules_support/clang.lua
+++ b/xmake/rules/c++/modules/modules_support/clang.lua
@@ -163,7 +163,7 @@ function load(target)
target:set("symbols", dep_symbols and dep_symbols or "none")
end
- -- if use libc++, we need install libc++ and libc++abi
+ -- if use libc++, we need to install libc++ and libc++abi
--
-- on ubuntu:
-- sudo apt install libc++-dev libc++abi-15-dev
@@ -208,7 +208,7 @@ function _get_toolchain_includedirs_for_stlheaders(target, includedirs, clang)
end
-- do compile for batchcmds
--- @note we need use batchcmds:compilev to translate paths in compflags for generator, e.g. -Ixx
+-- @note we need to use batchcmds:compilev to translate paths in compflags for generator, e.g. -Ixx
function _batchcmds_compile(batchcmds, target, sourcefile, flags)
local compinst = target:compiler("cxx")
local compflags = compinst:compflags({sourcefile = sourcefile, target = target})
@@ -620,7 +620,7 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op
elseif requiresflags then
local cxxflags = {}
for _, flag in ipairs(requiresflags) do
- -- we need wrap flag to support flag with space
+ -- we need to wrap flag to support flag with space
if type(flag) == "string" and flag:find(" ", 1, true) then
table.insert(cxxflags, {flag})
else
@@ -685,7 +685,7 @@ function build_modules_for_batchcmds(target, batchcmds, objectfiles, modules, op
elseif requiresflags then
local cxxflags = {}
for _, flag in ipairs(requiresflags) do
- -- we need wrap flag to support flag with space
+ -- we need to wrap flag to support flag with space
if type(flag) == "string" and flag:find(" ", 1, true) then
table.insert(cxxflags, {flag})
else
diff --git a/xmake/rules/c++/modules/modules_support/common.lua b/xmake/rules/c++/modules/modules_support/common.lua
index 65267bcbd..95cdc1626 100644
--- a/xmake/rules/c++/modules/modules_support/common.lua
+++ b/xmake/rules/c++/modules/modules_support/common.lua
@@ -544,7 +544,7 @@ function fallback_generate_dependencies(target, jsonfile, sourcefile, preprocess
end
end
local module_depname = line:match("import%s+(.+)%s*;")
- -- we need parse module interface dep in cxx/impl_unit.cpp, e.g. hello.mpp and hello_impl.cpp
+ -- we need to parse module interface dep in cxx/impl_unit.cpp, e.g. hello.mpp and hello_impl.cpp
-- @see https://github.com/xmake-io/xmake/pull/2664#issuecomment-1213167314
if not module_depname and not has_module_extension(sourcefile) then
module_depname = module_name_private
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua
index a243a8762..20b783821 100644
--- a/xmake/rules/c++/modules/modules_support/gcc.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc.lua
@@ -110,7 +110,7 @@ function _get_toolchain_includedirs_for_stlheaders(includedirs, gcc)
end
-- do compile for batchcmds
--- @note we need use batchcmds:compilev to translate paths in compflags for generator, e.g. -Ixx
+-- @note we need to use batchcmds:compilev to translate paths in compflags for generator, e.g. -Ixx
function _batchcmds_compile(batchcmds, target, flags, sourcefile)
local compinst = target:compiler("cxx")
local compflags = compinst:compflags({sourcefile = sourcefile}, {target = target})
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua
index 411b32b20..703374423 100644
--- a/xmake/rules/c++/modules/modules_support/msvc.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc.lua
@@ -71,7 +71,7 @@ function _compile(target, flags, sourcefile)
end
-- do compile for batchcmds
--- @note we need use batchcmds:compilev to translate paths in compflags for generator, e.g. -Ixx
+-- @note we need to use batchcmds:compilev to translate paths in compflags for generator, e.g. -Ixx
function _batchcmds_compile(batchcmds, target, flags, sourcefile)
local compinst = target:compiler("cxx")
local compflags = compinst:compflags({sourcefile = sourcefile, target = target})
@@ -741,7 +741,7 @@ function get_requiresflags(target, requires, opt)
local modulemap_ = _get_modulemap_from_mapper(dep)
if modulemap_[name] then
table.join2(flags, modulemap_[name].flag)
- -- we need ignore headerunits from deps
+ -- we need to ignore headerunits from deps
-- @see https://github.com/xmake-io/xmake/issues/3925
local skip = 0
for _, flag in ipairs(modulemap_[name].deps) do