diff options
| author | ruki <[email protected]> | 2021-12-22 22:50:16 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-22 22:50:16 +0800 |
| commit | ef918f37ade05750fd533b7d6dcca32091eb1906 (patch) | |
| tree | 67886a46223c15b328839edd86843950fa788840 | |
| parent | 9d5658ade35f41bb2c8a348e4d835c52eb33cf5d (diff) | |
Update config.lua
| -rw-r--r-- | xmake/core/project/config.lua | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua index 00d06e878..d6dbcc962 100644 --- a/xmake/core/project/config.lua +++ b/xmake/core/project/config.lua @@ -97,14 +97,7 @@ function config.buildir(opt) opt = opt or {} local buildir = config.get("buildir") or "build" if not path.is_absolute(buildir) then - local rootdir - if 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() - else - rootdir = os.projectdir() - end - buildir = path.absolute(buildir, rootdir) + buildir = path.absolute(buildir, os.projectdir()) end -- adjust path for the current directory |
