summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/makefile/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-19 14:56:46 +0800
committerruki <[email protected]>2017-07-19 14:56:46 +0800
commitf22b46466ebed2df42379172a31107e071b99979 (patch)
treecb8dbafadd4bfc0fa85c40b2c239c1c1b0f91bf4 /xmake/plugins/project/makefile/makefile.lua
parent8119b93a66582b3b2f0443f5984b7a0336c30c8f (diff)
export compile_commands.json for clang tools
Diffstat (limited to 'xmake/plugins/project/makefile/makefile.lua')
-rw-r--r--xmake/plugins/project/makefile/makefile.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/project/makefile/makefile.lua b/xmake/plugins/project/makefile/makefile.lua
index 09b6d2e0f..d036c7240 100644
--- a/xmake/plugins/project/makefile/makefile.lua
+++ b/xmake/plugins/project/makefile/makefile.lua
@@ -387,7 +387,7 @@ end
function make(outputdir)
-- enter project directory
- local olddir = os.cd(project.directory())
+ local oldir = os.cd(os.projectdir())
-- remove the log makefile first
os.rm(_logfile())
@@ -402,5 +402,5 @@ function make(outputdir)
makefile:close()
-- leave project directory
- os.cd(olddir)
+ os.cd(oldir)
end