summaryrefslogtreecommitdiff
path: root/xmake/rules/objc++/precompiled_header/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-04-06 22:44:20 +0800
committerruki <[email protected]>2025-04-08 15:31:58 +0800
commit162f55410e2a1ed2a81dddfc4189bb85158f2525 (patch)
tree2765e3d6d46986b0dbfb216eee598795e3d6e862 /xmake/rules/objc++/precompiled_header/xmake.lua
parentd88716e932f28b3546b90a71e79ca9d8d5fb6551 (diff)
fix pcheader for objc
Diffstat (limited to 'xmake/rules/objc++/precompiled_header/xmake.lua')
-rw-r--r--xmake/rules/objc++/precompiled_header/xmake.lua13
1 files changed, 7 insertions, 6 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})