summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/clang.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-04 22:46:09 +0800
committerruki <[email protected]>2022-08-04 22:46:09 +0800
commitfd44ddb961977eeed2b15637562da80174f1a5ee (patch)
treea43e3d9e4034730543b7a26d35b80e67de833f03 /xmake/rules/c++/modules/modules_support/clang.lua
parent78a52f5c6238dd163e90c2b8bb6f1fc82b0a86a7 (diff)
format code for gcc
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/clang.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/clang.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua
index 6fc0e340a..44150ab21 100644
--- a/xmake/rules/c++/modules/modules_support/clang.lua
+++ b/xmake/rules/c++/modules/modules_support/clang.lua
@@ -66,7 +66,7 @@ function toolchain_include_directories(target)
for _, line in ipairs(result:split("\n", {plain = true})) do
line = line:trim()
if os.isdir(line) then
- table.append(includedirs, line)
+ table.insert(includedirs, line)
break
elseif line:startswith("End") then
break
@@ -152,7 +152,7 @@ function generate_headerunits(target, batchcmds, sourcebatch, opt)
batchcmds:set_depmtime(os.mtime(bmifile))
batchcmds:set_depcache(target:dependfile(bmifile))
- table.append(public_flags, modulefileflag .. bmifile)
+ table.insert(public_flags, modulefileflag .. bmifile)
else
local bmifile = path.join(stlcachedir, headerunit.name .. get_bmi_extension())
if not os.isfile(bmifile) then
@@ -164,7 +164,7 @@ function generate_headerunits(target, batchcmds, sourcebatch, opt)
batchcmds:set_depmtime(os.mtime(bmifile))
batchcmds:set_depcache(target:dependfile(bmifile))
- table.append(private_flags, modulefileflag .. bmifile)
+ table.insert(private_flags, modulefileflag .. bmifile)
end
end
return public_flags, private_flags