From ef918f37ade05750fd533b7d6dcca32091eb1906 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 22 Dec 2021 22:50:16 +0800 Subject: Update config.lua --- xmake/core/project/config.lua | 9 +-------- 1 file changed, 1 insertion(+), 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 -- cgit v1.3.1