diff options
| author | ruki <[email protected]> | 2023-02-08 22:55:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-08 22:55:20 +0800 |
| commit | f38629bf5c5748719a02fae9afebd7ce83a64d0a (patch) | |
| tree | 305136458ff6a803889c2900f284cd528ea6e75a /xmake/core/project/config.lua | |
| parent | 9d8d0b6b038d831be197dea90271ae4bd1b7ea55 (diff) | |
add external workdir
Diffstat (limited to 'xmake/core/project/config.lua')
| -rw-r--r-- | xmake/core/project/config.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua index bf68e93a8..3f9f02341 100644 --- a/xmake/core/project/config.lua +++ b/xmake/core/project/config.lua @@ -129,12 +129,9 @@ end function config.directory() if config._DIRECTORY == nil then local rootdir = os.getenv("XMAKE_CONFIGDIR") - if not rootdir and os.isdir(path.join(os.workingdir(), ".xmake")) then - -- we switch to independent working directory @see https://github.com/xmake-io/xmake/issues/820 - rootdir = os.workingdir() - end if not rootdir then - rootdir = os.projectdir() + -- @see https://github.com/xmake-io/xmake/issues/3342 + rootdir = os.workingdir() end config._DIRECTORY = path.join(rootdir, "." .. xmake._NAME, os.host(), os.arch()) end |
