Skip to content

Commit

Permalink
improve build_files #5860
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Nov 23, 2024
1 parent 313e513 commit 96e6e9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xmake/actions/build/build_files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ function _add_batchjobs_for_target_and_deps(batchjobs, rootjob, jobrefs, target,
local targetjob, targetjob_root = _add_batchjobs_for_target(batchjobs, rootjob, target, filepatterns)
if targetjob and targetjob_root then
jobrefs[target:name()] = targetjob_root
for _, depname in ipairs(target:get("deps")) do
_add_batchjobs_for_target_and_deps(batchjobs, targetjob, jobrefs, project.target(depname), filepatterns)
if not option.get("shallow") then
for _, depname in ipairs(target:get("deps")) do
_add_batchjobs_for_target_and_deps(batchjobs, targetjob, jobrefs, project.target(depname), filepatterns)
end
end
end
end
Expand Down

0 comments on commit 96e6e9e

Please sign in to comment.