summaryrefslogtreecommitdiff
path: root/xmake/rules/objc++
diff options
context:
space:
mode:
authorChristian Rendina <[email protected]>2025-04-10 09:50:37 +0200
committerChristian Rendina <[email protected]>2025-04-10 09:50:37 +0200
commit78723913d76fb8b615df34541236b8ea588d30db (patch)
treeb6b6ff550e4a2f73d94c63a61876cec31a4b3ae3 /xmake/rules/objc++
parent2051c13f735a626f7b6fd8b98aa69f01fd9cef7e (diff)
parentfd49b7754c6709a87b5beb5526788bbc1a663965 (diff)
Merge branch 'dev' of https://github.com/xmake-io/xmake into dev
Diffstat (limited to 'xmake/rules/objc++')
-rw-r--r--xmake/rules/objc++/precompiled_header/xmake.lua13
-rw-r--r--xmake/rules/objc++/xmake.lua4
2 files changed, 9 insertions, 8 deletions
diff --git a/xmake/rules/objc++/precompiled_header/xmake.lua b/xmake/rules/objc++/precompiled_header/xmake.lua
index db2d9f036..9f2b21ade 100644
--- a/xmake/rules/objc++/precompiled_header/xmake.lua
+++ b/xmake/rules/objc++/precompiled_header/xmake.lua
@@ -22,15 +22,16 @@ rule("objc.build.pcheader")
on_config(function (target, opt)
import("private.action.build.pcheader").config(target, "m", opt)
end)
- before_build(function (target, opt)
- import("private.action.build.pcheader").build(target, "m", opt)
- end)
+ before_prepare(function (target, jobgraph, opt)
+ import("private.action.build.pcheader").build(target, jobgraph, "m", opt)
+ end, {jobgraph = true})
rule("objc++.build.pcheader")
+ add_orders("objc++.build.pcheader", "c++.build.modules.builder")
on_config(function (target, opt)
import("private.action.build.pcheader").config(target, "mxx", opt)
end)
- before_build(function (target, opt)
- import("private.action.build.pcheader").build(target, "mxx", opt)
- end)
+ before_prepare(function (target, jobgraph, opt)
+ import("private.action.build.pcheader").build(target, jobgraph, "mxx", opt)
+ end, {jobgraph = true})
diff --git a/xmake/rules/objc++/xmake.lua b/xmake/rules/objc++/xmake.lua
index c653261e7..3714ddf3f 100644
--- a/xmake/rules/objc++/xmake.lua
+++ b/xmake/rules/objc++/xmake.lua
@@ -31,7 +31,7 @@ rule("objc.build")
target:add("frameworks", "Foundation", "CoreFoundation")
end
end)
- on_build_files("private.action.build.object", {batch = true, distcc = true})
+ on_build_files("private.action.build.object", {jobgraph = true, batch = true, distcc = true})
-- define rule: objc++.build
rule("objc++.build")
@@ -46,7 +46,7 @@ rule("objc++.build")
target:add("frameworks", "Foundation", "CoreFoundation")
end
end)
- on_build_files("private.action.build.object", {batch = true, distcc = true})
+ on_build_files("private.action.build.object", {jobgraph = true, batch = true, distcc = true})
-- define rule: objc
rule("objc++")