diff options
| author | ruki <[email protected]> | 2021-06-02 17:17:08 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-02 17:17:08 +0800 |
| commit | 34150862caa0fb8f01d9e607e07093773363a927 (patch) | |
| tree | 5eb9e70a1838102a5d1bdb667975fc806767c42a | |
| parent | cf0700be47ade15befda125341584a7c96b0145e (diff) | |
| parent | cf05a72ce5a0393f5471eeac67b2db35a13990a0 (diff) | |
Merge pull request #1434 from SirLynix/vsxmake-autoupdate-location
Move vsxmake.autoupdate dependfile to the persistent .xmake cache folder
| -rw-r--r-- | xmake/rules/plugin/vsxmake/xmake.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/plugin/vsxmake/xmake.lua b/xmake/rules/plugin/vsxmake/xmake.lua index 1821e5dfb..88693599f 100644 --- a/xmake/rules/plugin/vsxmake/xmake.lua +++ b/xmake/rules/plugin/vsxmake/xmake.lua @@ -32,12 +32,13 @@ rule("plugin.vsxmake.autoupdate") after_build(function (opt) -- imports + import("core.project.config") import("core.project.depend") import("core.project.project") import("core.base.task") -- run only once for all xmake process in vs - local tmpfile = os.tmpfile(path.join(os.projectdir(), "plugin.vsxmake.autoupdate")) + local tmpfile = path.join(config.buildir(), ".gens", "rules", "plugin.vsxmake.autoupdate") local dependfile = tmpfile .. ".d" local lockfile = io.openlock(tmpfile .. ".lock") if lockfile:trylock() then @@ -59,4 +60,3 @@ rule("plugin.vsxmake.autoupdate") lockfile:close() end end) - |
