diff options
| author | ruki <[email protected]> | 2022-11-22 06:32:06 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-22 06:32:06 +0800 |
| commit | 0d8c8620defbc43e4485e2f1c0ff8f6f4ff7872f (patch) | |
| tree | 01e85e4faaeb64a7e6c4349252140a3b272797e8 | |
| parent | 60a92afdf2ac0790e52baca5ca452b5ac94a5725 (diff) | |
| parent | 01531550430222e139952537e7b94a392292df2f (diff) | |
Merge pull request #3089 from xmake-io/unity
improve unity build to support package rules with extensions
| -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 |
