diff options
| author | ruki <[email protected]> | 2025-04-04 00:24:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-08 15:31:57 +0800 |
| commit | 00db1966d9dee14ca10abae74ac722680186e0ab (patch) | |
| tree | e39e5a67071b5a6196388e7d98b2b33bda6411f1 | |
| parent | c8c97864f3dd431e382548c549957c36c0e60a07 (diff) | |
add file rule
| -rw-r--r-- | xmake/actions/build/target_utils.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xmake/actions/build/target_utils.lua b/xmake/actions/build/target_utils.lua index 30dd99125..266bc3090 100644 --- a/xmake/actions/build/target_utils.lua +++ b/xmake/actions/build/target_utils.lua @@ -478,6 +478,7 @@ function add_filejobs_with_stage(jobgraph, target, sourcebatches, stage, opt) local scriptcmd_files_name = stage ~= "" and (job_kindcmd_files .. "_" .. stage) or job_kindcmd_files -- build sourcebatches map + local instances = {target} local sourcebatches_map = {} local sourcebatches_for_target = {} for _, sourcebatch in pairs(sourcebatches) do @@ -496,16 +497,13 @@ function add_filejobs_with_stage(jobgraph, target, sourcebatches, stage, opt) if ruleinst:script("build_file") or ruleinst:script("build_files") then table.insert(sourcebatches_for_target, sourcebatch) end + table.insert(instances, ruleinst) else table.insert(sourcebatches_for_target, sourcebatch) end end -- TODO sort rules and jobs - local instances = {target} - for _, r in ipairs(target:orderules()) do - table.insert(instances, r) - end -- call target and rules script local jobsize = jobgraph:size() |
