summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/application/load.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/xcode/application/load.lua')
-rw-r--r--xmake/rules/xcode/application/load.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/xmake/rules/xcode/application/load.lua b/xmake/rules/xcode/application/load.lua
index cb90a6c83..e4f76191e 100644
--- a/xmake/rules/xcode/application/load.lua
+++ b/xmake/rules/xcode/application/load.lua
@@ -54,4 +54,15 @@ function main (target)
-- register clean files for `xmake clean`
target:add("cleanfiles", bundledir)
+
+ -- depend xcode.framework? we need disable `build.across_targets_in_parallel` policy
+ local across_targets_in_parallel
+ for _, dep in ipairs(target:orderdeps()) do
+ if dep:rule("xcode.framework") then
+ across_targets_in_parallel = false
+ end
+ end
+ if across_targets_in_parallel ~= nil then
+ target:set("policy", "build.across_targets_in_parallel", across_targets_in_parallel)
+ end
end