diff options
| author | ruki <[email protected]> | 2025-04-06 22:11:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-08 15:31:58 +0800 |
| commit | 6d8671865bbe9026305186c54b4ef82ebb80a4bc (patch) | |
| tree | a8bcb3a568481afde09d18adeba764d3ef528dfa /xmake/rules/c++/precompiled_header/xmake.lua | |
| parent | 43c3b8607775f7ee5b52e24a7f785b4c7a5ab292 (diff) | |
enable jobgraph for pch
Diffstat (limited to 'xmake/rules/c++/precompiled_header/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/precompiled_header/xmake.lua | 12 |
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}) |
