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/rules/c++/modules/modules_support/clang.lua | |
| parent | ca83e9a78b7f2d45e833fa705c880867ad2381c6 (diff) | |
Fix grammar
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/clang.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang.lua | 8 |
1 files changed, 4 insertions, 4 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 |
