summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/precompiled_header/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/c++/precompiled_header/xmake.lua')
-rw-r--r--xmake/rules/c++/precompiled_header/xmake.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/xmake/rules/c++/precompiled_header/xmake.lua b/xmake/rules/c++/precompiled_header/xmake.lua
index 7216a1f13..30ab31106 100644
--- a/xmake/rules/c++/precompiled_header/xmake.lua
+++ b/xmake/rules/c++/precompiled_header/xmake.lua
@@ -22,15 +22,16 @@ rule("c.build.pcheader")
on_config(function (target, opt)
import("private.action.build.pcheader").config(target, "c", opt)
end)
- before_build(function (target, opt)
- import("private.action.build.pcheader").build(target, "c", opt)
- end)
+ before_prepare(function (target, jobgraph, opt)
+ import("private.action.build.pcheader").build(target, jobgraph, "c", opt)
+ end, {jobgraph = true})
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, "cxx", opt)
end)
- before_build(function (target, opt)
- import("private.action.build.pcheader").build(target, "cxx", opt)
- end)
+ before_prepare(function (target, jobgraph, opt)
+ import("private.action.build.pcheader").build(target, jobgraph, "cxx", opt)
+ end, {jobgraph = true})