diff options
| author | ruki <[email protected]> | 2018-10-23 23:49:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-10-23 16:58:22 +0800 |
| commit | 0862654bf50f43246c2399121fd1a0f3b9c2d82d (patch) | |
| tree | bd7300f847b89a6ded36bb5618f0d4c4f020eecc | |
| parent | d9e4e83f98b0f66a506ddf677658dd6458a160e9 (diff) | |
add XMAKE_CONFIGDIR
| -rw-r--r-- | xmake/core/project/config.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua index 283c0a060..71d28b1be 100644 --- a/xmake/core/project/config.lua +++ b/xmake/core/project/config.lua @@ -153,7 +153,10 @@ end -- get the configure directory function config.directory() - return path.join(os.projectdir(), ".xmake") + if config._ROOTDIR == nil then + config._ROOTDIR = os.getenv("XMAKE_CONFIGDIR") or path.join(os.projectdir(), ".xmake") + end + return config._ROOTDIR end -- load the project configure |
