From d88716e932f28b3546b90a71e79ca9d8d5fb6551 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 6 Apr 2025 22:37:25 +0800 Subject: fix pch --- xmake/rules/c++/precompiled_header/xmake.lua | 4 ++-- 1 file 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}) -- cgit v1.3.1