diff options
| -rw-r--r-- | xmake/core/project/config.lua | 4 |
1 files 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 |
