summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-03-31 22:46:41 +0800
committerruki <[email protected]>2019-03-31 22:46:41 +0800
commitf23b20ed74ca73310237eeb594d98b2a69732443 (patch)
tree58a8746ddaec54c749190e39325a6834ac246620
parent5ee7a62531547c8017551d14012c9e56a8938e56 (diff)
fix compile_commands path for windows
-rw-r--r--xmake/plugins/project/clang/compile_commands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua
index a7ae7f3f0..18f4595cd 100644
--- a/xmake/plugins/project/clang/compile_commands.lua
+++ b/xmake/plugins/project/clang/compile_commands.lua
@@ -53,7 +53,7 @@ function _make_object(jsonfile, target, sourcefile, objectfile)
"directory": "%s",
"arguments": ["%s"],
"file": "%s"
-}]], ifelse(_g.firstline, "", ",\n"), os.projectdir(), table.concat(arguments_escape, "\", \""), sourcefile)
+}]], ifelse(_g.firstline, "", ",\n"), os.args(os.projectdir()), table.concat(arguments_escape, "\", \""), os.args(sourcefile))
-- clear first line marks
_g.firstline = false