summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2025-08-19 22:51:43 +0800
committerruki <[email protected]>2025-08-19 22:51:43 +0800
commita115f760c346a010a6633e230dcb57b4ce0f2df0 (patch)
treef704d1b2b31492a7c9a0dee5b6289b3c50bed2fa /xmake/modules
parent8a7b5215e90e944246366197e4fa01bc927dd57a (diff)
add dep_fence
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/action/build/target.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/action/build/target.lua b/xmake/modules/private/action/build/target.lua
index e3c4febb1..444dfc18e 100644
--- a/xmake/modules/private/action/build/target.lua
+++ b/xmake/modules/private/action/build/target.lua
@@ -115,7 +115,8 @@ end
function _add_targetjobs_deep_orders(jobgraph, target, dep, opt)
local jobname, jobname_dep
local job_kind = opt.job_kind
- if job_kind == "config" or dep:policy("build.fence") or dep:policy("build.across_targets_in_parallel") == false then
+ local dep_fence = opt.dep_fence or dep:policy("build.fence") or dep:policy("build.across_targets_in_parallel") == false
+ if dep_fence then
jobname = string.format("%s/begin_%s", target:fullname(), job_kind)
jobname_dep = string.format("%s/end_%s", dep:fullname(), job_kind)
-- build.across_targets_in_parallel is deprecated