summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/build/link_objects.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-04-09 23:42:30 +0800
committerruki <[email protected]>2025-04-09 23:42:30 +0800
commit77d90d253447ea6992f4f0a81d8df219e23b499c (patch)
tree6765217c72d7f05ba2e0dab0f18285a566b872c1 /xmake/modules/private/action/build/link_objects.lua
parent811f8772bbc14d90172aa294b20aed44d41902d9 (diff)
improve target_cmds
Diffstat (limited to 'xmake/modules/private/action/build/link_objects.lua')
-rw-r--r--xmake/modules/private/action/build/link_objects.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/modules/private/action/build/link_objects.lua b/xmake/modules/private/action/build/link_objects.lua
index 25214d27e..396896d00 100644
--- a/xmake/modules/private/action/build/link_objects.lua
+++ b/xmake/modules/private/action/build/link_objects.lua
@@ -60,9 +60,13 @@ function _do_link_target(target, opt)
values = depvalues, files = depfiles, dryrun = dryrun})
end
-function main(jobgraph, target)
+function main(jobgraph, target, opt)
+ opt = opt or {}
+ local buildcmds = opt.buildcmds
local linkjob = target:fullname() .. "/link_objects"
jobgraph:add(linkjob, function (index, total, opt)
- _do_link_target(target, opt)
+ if not buildcmds then
+ _do_link_target(target, opt)
+ end
end)
end