diff options
| author | ruki <[email protected]> | 2024-01-25 23:25:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-25 23:25:52 +0800 |
| commit | 647e8c36c5d54635df12666f3a0bc45b45084389 (patch) | |
| tree | 582619bf4c36cd7174d712b9945a663c6be699e7 | |
| parent | 3781f4b6a26ce55b58b95fb704e5217afe231ce1 (diff) | |
clear target cache
| -rw-r--r-- | xmake/core/project/target.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index fedac0404..8cc2ff824 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -313,6 +313,7 @@ end function _instance:_invalidate(name) self._CACHEID = self._CACHEID + 1 self._POLICIES = nil + self:_memcache():clear() -- we need to flush the source files cache if target/files are modified, e.g. `target:add("files", "xxx.c")` if name == "files" then self._SOURCEFILES = nil |
