From 9dab7e4739cb4e1d9b51117fbf1932a4b83635cc Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 26 Aug 2019 23:38:52 +0800 Subject: fix configdir --- xmake/core/project/config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua index efb9867d0..2c7237ec8 100644 --- a/xmake/core/project/config.lua +++ b/xmake/core/project/config.lua @@ -148,8 +148,8 @@ end -- get the configure directory on the current host/arch platform function config.directory() if config._DIRECTORY == nil then - local rootdir = os.getenv("XMAKE_CONFIGDIR") or path.join(os.projectdir(), ".xmake") - config._DIRECTORY = path.join(rootdir, os.host(), os.arch()) + local rootdir = os.getenv("XMAKE_CONFIGDIR") or os.projectdir() + config._DIRECTORY = path.join(rootdir, ".xmake", os.host(), os.arch()) end return config._DIRECTORY end -- cgit v1.3.1