summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/c++/precompiled_header/xmake.lua1
-rw-r--r--xmake/rules/objc++/precompiled_header/xmake.lua13
2 files changed, 7 insertions, 7 deletions
diff --git a/xmake/rules/c++/precompiled_header/xmake.lua b/xmake/rules/c++/precompiled_header/xmake.lua
index c5fbd15a7..30ab31106 100644
--- a/xmake/rules/c++/precompiled_header/xmake.lua
+++ b/xmake/rules/c++/precompiled_header/xmake.lua
@@ -19,7 +19,6 @@
--
rule("c.build.pcheader")
- add_orders("c.build.pcheader", "c++.build.modules.builder")
on_config(function (target, opt)
import("private.action.build.pcheader").config(target, "c", opt)
end)
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})