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 2d3b07d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xmake/actions/build/build_files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ function _add_batchjobs(batchjobs, rootjob, target, filepatterns)
end
if sourcecount > 0 then
return object.add_batchjobs_for_sourcefiles(batchjobs, rootjob, target, newbatches)
else
return rootjob, rootjob
end
end

Expand All @@ -106,8 +104,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 2d3b07d

Please sign in to comment.