diff options
| author | ruki <[email protected]> | 2020-12-22 00:48:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-22 00:48:16 +0800 |
| commit | 4782a9648e20c0e6a4620f7255ab3cb476dceb5e (patch) | |
| tree | b28369f767800262db24da6b347d62acf8ffad33 /xmake/core/main.lua | |
| parent | 192f10c1d09e665f04dd5669fcaccc5abccbb9db (diff) | |
rewrite some caches
Diffstat (limited to 'xmake/core/main.lua')
| -rw-r--r-- | xmake/core/main.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index d9638459f..ad343edb4 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -37,7 +37,7 @@ local scheduler = require("base/scheduler") local theme = require("theme/theme") local config = require("project/config") local project = require("project/project") -local history = require("project/history") +local localcache = require("cache/localcache") --local profiler = require("base/profiler") -- init the option menu @@ -267,7 +267,8 @@ Or you can add `--root` option or XMAKE_ROOT=y to allow run as root temporarily. -- save command lines to history and we need to make sure that the .xmake directory is not generated everywhere local skip_history = (os.getenv('XMAKE_SKIP_HISTORY') or ''):trim() if os.projectfile() and os.isfile(os.projectfile()) and os.isdir(config.directory()) and skip_history == '' then - history("local.history"):save("cmdlines", option.cmdline()) + localcache.set("history", "cmdlines", option.cmdline()) + localcache.save("history") end -- get task instance |
