summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-07-17 22:40:22 +0800
committerruki <[email protected]>2025-07-17 22:40:22 +0800
commitf8be35e78a0f3a0f9b151d7309fdb8e0c79fd6be (patch)
treecb356966d4a96dd6696790a5e06564ea0b24f347
parentbd2146725ab2d4239587b38513f30b2926ab0921 (diff)
fix batchcmds
-rw-r--r--xmake/modules/private/action/build/target.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/action/build/target.lua b/xmake/modules/private/action/build/target.lua
index 450586dea..f4caa90f2 100644
--- a/xmake/modules/private/action/build/target.lua
+++ b/xmake/modules/private/action/build/target.lua
@@ -514,12 +514,12 @@ function add_filejobs_for_script(jobgraph, target, instance, sourcebatch, opt)
scriptcmd_file(target, buildcmds, sourcefile, {progress = opt.progress, sourcekind = sourcekind})
end
else
- local batchcmds_ = batchcmds.new({target = target})
local sourcekind = sourcebatch.sourcekind
for _, sourcefile in ipairs(sourcebatch.sourcefiles) do
+ local batchcmds_ = batchcmds.new({target = target})
scriptcmd_file(target, batchcmds_, sourcefile, {progress = opt.progress, sourcekind = sourcekind, distcc = distcc})
+ batchcmds_:runcmds({changed = target:is_rebuilt(), dryrun = option.get("dry-run")})
end
- batchcmds_:runcmds({changed = target:is_rebuilt(), dryrun = option.get("dry-run")})
end
end)
has_script = true