summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/precompiled_header/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-04-06 22:37:25 +0800
committerruki <[email protected]>2025-04-08 15:31:58 +0800
commitd88716e932f28b3546b90a71e79ca9d8d5fb6551 (patch)
treea497cf63a10da0799c1b398baeed4c8ed7cdfbfd /xmake/rules/c++/precompiled_header/xmake.lua
parent6d8671865bbe9026305186c54b4ef82ebb80a4bc (diff)
fix pch
Diffstat (limited to 'xmake/rules/c++/precompiled_header/xmake.lua')
-rw-r--r--xmake/rules/c++/precompiled_header/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/precompiled_header/xmake.lua b/xmake/rules/c++/precompiled_header/xmake.lua
index 08ecf3fd7..c5fbd15a7 100644
--- a/xmake/rules/c++/precompiled_header/xmake.lua
+++ b/xmake/rules/c++/precompiled_header/xmake.lua
@@ -23,7 +23,7 @@ rule("c.build.pcheader")
on_config(function (target, opt)
import("private.action.build.pcheader").config(target, "c", opt)
end)
- on_prepare(function (target, jobgraph, opt)
+ before_prepare(function (target, jobgraph, opt)
import("private.action.build.pcheader").build(target, jobgraph, "c", opt)
end, {jobgraph = true})
@@ -32,7 +32,7 @@ rule("c++.build.pcheader")
on_config(function (target, opt)
import("private.action.build.pcheader").config(target, "cxx", opt)
end)
- on_prepare(function (target, jobgraph, opt)
+ before_prepare(function (target, jobgraph, opt)
import("private.action.build.pcheader").build(target, jobgraph, "cxx", opt)
end, {jobgraph = true})