diff options
| author | ruki <[email protected]> | 2019-08-26 23:38:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-26 15:53:13 +0800 |
| commit | 9dab7e4739cb4e1d9b51117fbf1932a4b83635cc (patch) | |
| tree | 334ed01839536a22ae871a7f3fdd79fb92838faa | |
| parent | 2cf54c1bdc0c28ce571fcc5fe2dbb9380838dc85 (diff) | |
fix configdir
| -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 |
