summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/build/object.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-15 00:46:08 +0800
committerruki <[email protected]>2021-10-15 00:46:08 +0800
commit6cd055242dad6d0697f340f0cdc6b8f56e63df12 (patch)
tree54325b23c8255e466621e75fba4c0cb8e93bc7c8 /xmake/modules/private/action/build/object.lua
parent3404b2307d5c191f27a140f51b78908de5e579de (diff)
improve gcc modules
Diffstat (limited to 'xmake/modules/private/action/build/object.lua')
-rw-r--r--xmake/modules/private/action/build/object.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/private/action/build/object.lua b/xmake/modules/private/action/build/object.lua
index 7a99de91e..e07ab76b7 100644
--- a/xmake/modules/private/action/build/object.lua
+++ b/xmake/modules/private/action/build/object.lua
@@ -85,7 +85,7 @@ function _do_build_file(target, sourcefile, opt)
end
-- build object
-function _build_object(target, sourcefile, opt)
+function build_object(target, sourcefile, opt)
local script = target:script("build_file", _do_build_file)
if script then
script(target, sourcefile, opt)
@@ -99,7 +99,7 @@ function build(target, sourcebatch, opt)
opt.objectfile = sourcebatch.objectfiles[i]
opt.dependfile = sourcebatch.dependfiles[i]
opt.sourcekind = assert(sourcebatch.sourcekind, "%s: sourcekind not found!", sourcefile)
- _build_object(target, sourcefile, opt)
+ build_object(target, sourcefile, opt)
end
end
@@ -113,7 +113,7 @@ function main(target, batchjobs, sourcebatch, opt)
local sourcekind = assert(sourcebatch.sourcekind, "%s: sourcekind not found!", sourcefile)
batchjobs:addjob(sourcefile, function (index, total)
local build_opt = table.join({objectfile = objectfile, dependfile = dependfile, sourcekind = sourcekind, progress = (index * 100) / total}, opt)
- _build_object(target, sourcefile, build_opt)
+ build_object(target, sourcefile, build_opt)
end, {rootjob = rootjob})
end
end