diff options
| author | ruki <[email protected]> | 2023-09-01 00:45:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-09-01 00:45:44 +0800 |
| commit | abc48d4f230d471ebf53051bf36f2a0ecd94077e (patch) | |
| tree | 8027e583c9eb56d976b5b1abcf3bbd20bd8dc7b9 /xmake/rules/c++/unity_build/unity_build.lua | |
| parent | 85f19d35241297cc92e41fe437f8ed27e5e8e3d2 (diff) | |
replace on_changed
Diffstat (limited to 'xmake/rules/c++/unity_build/unity_build.lua')
| -rw-r--r-- | xmake/rules/c++/unity_build/unity_build.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/unity_build/unity_build.lua b/xmake/rules/c++/unity_build/unity_build.lua index ad93753c0..84582c0c4 100644 --- a/xmake/rules/c++/unity_build/unity_build.lua +++ b/xmake/rules/c++/unity_build/unity_build.lua @@ -23,7 +23,7 @@ import("core.project.depend") function _merge_unityfile(target, sourcefile_unity, sourcefiles, opt) local dependfile = target:dependfile(sourcefile_unity) - depend.on_changed(function () + depend._on_changed(function () -- trace vprint("generating.unityfile %s", sourcefile_unity) @@ -45,7 +45,7 @@ function _merge_unityfile(target, sourcefile_unity, sourcefiles, opt) end unityfile:close() - end, {dependfile = dependfile, files = sourcefiles}) + end, {dependfile = dependfile, files = sourcefiles, changed = target:is_rebuilt()}) end function generate_unityfiles(target, sourcebatch, opt) |
