diff options
| author | ruki <[email protected]> | 2025-03-29 23:27:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-08 15:31:56 +0800 |
| commit | 2e6cc42d5cc78ce8df9e50d3cffbdd446a26ec8a (patch) | |
| tree | ce78ee0297a43dcff64798d3ae4dbb6a0e3830a9 /xmake | |
| parent | b0c4c943920b758b7f9482952e5227f224301af4 (diff) | |
fix add_filejobs
Diffstat (limited to 'xmake')
| -rw-r--r-- | xmake/actions/build/target_utils.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/actions/build/target_utils.lua b/xmake/actions/build/target_utils.lua index 47c4aa9ec..1d2318a5e 100644 --- a/xmake/actions/build/target_utils.lua +++ b/xmake/actions/build/target_utils.lua @@ -494,8 +494,13 @@ function add_filejobs(jobgraph, target, opt) end -- get sourcebatches + local sourcebatches local filepatterns = opt.filepatterns - local sourcebatches = filepatterns and _match_sourcebatches(target, filepatterns) or target:sourcebatches() + if filepatterns then + sourcebatches = _match_sourcebatches(target, filepatterns) + else + sourcebatches = target:sourcebatches() + end -- we just build sourcebatch with on_build_files scripts -- |
