From 01531550430222e139952537e7b94a392292df2f Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 22 Nov 2022 00:35:45 +0800 Subject: improve unity build to support package rules with extensions --- xmake/rules/c++/unity_build/xmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/rules/c++/unity_build/xmake.lua b/xmake/rules/c++/unity_build/xmake.lua index e0dfa9660..bd82b663a 100644 --- a/xmake/rules/c++/unity_build/xmake.lua +++ b/xmake/rules/c++/unity_build/xmake.lua @@ -19,7 +19,7 @@ -- rule("c.unity_build") - after_load(function (target) + on_config(function (target) import("unity_build") local sourcebatches = target:sourcebatches() if sourcebatches then @@ -41,7 +41,7 @@ rule("c.unity_build") end) rule("c++.unity_build") - after_load(function (target) + on_config(function (target) import("unity_build") local sourcebatches = target:sourcebatches() if sourcebatches then -- cgit v1.3.1