diff options
| author | ruki <[email protected]> | 2022-11-22 00:35:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-11-22 00:35:45 +0800 |
| commit | 01531550430222e139952537e7b94a392292df2f (patch) | |
| tree | 01e85e4faaeb64a7e6c4349252140a3b272797e8 /xmake/rules/c++/unity_build/xmake.lua | |
| parent | 60a92afdf2ac0790e52baca5ca452b5ac94a5725 (diff) | |
improve unity build to support package rules with extensions
Diffstat (limited to 'xmake/rules/c++/unity_build/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/unity_build/xmake.lua | 4 |
1 files 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 |
