summaryrefslogtreecommitdiff
path: root/xmake/rules/c++
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/c++')
-rw-r--r--xmake/rules/c++/precompiled_header/xmake.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/rules/c++/precompiled_header/xmake.lua b/xmake/rules/c++/precompiled_header/xmake.lua
index 3f30c1ea1..08ecf3fd7 100644
--- a/xmake/rules/c++/precompiled_header/xmake.lua
+++ b/xmake/rules/c++/precompiled_header/xmake.lua
@@ -23,16 +23,16 @@ rule("c.build.pcheader")
on_config(function (target, opt)
import("private.action.build.pcheader").config(target, "c", opt)
end)
- on_prepare(function (target, opt)
- import("private.action.build.pcheader").build(target, "c", opt)
- end)
+ on_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)
- on_prepare(function (target, opt)
- import("private.action.build.pcheader").build(target, "cxx", opt)
- end)
+ on_prepare(function (target, jobgraph, opt)
+ import("private.action.build.pcheader").build(target, jobgraph, "cxx", opt)
+ end, {jobgraph = true})