summaryrefslogtreecommitdiff
path: root/xmake/core/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-22 00:48:16 +0800
committerruki <[email protected]>2020-12-22 00:48:16 +0800
commit4782a9648e20c0e6a4620f7255ab3cb476dceb5e (patch)
treeb28369f767800262db24da6b347d62acf8ffad33 /xmake/core/main.lua
parent192f10c1d09e665f04dd5669fcaccc5abccbb9db (diff)
rewrite some caches
Diffstat (limited to 'xmake/core/main.lua')
-rw-r--r--xmake/core/main.lua5
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