summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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})