diff options
| author | ruki <[email protected]> | 2019-03-31 22:46:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-03-31 22:46:41 +0800 |
| commit | f23b20ed74ca73310237eeb594d98b2a69732443 (patch) | |
| tree | 58a8746ddaec54c749190e39325a6834ac246620 | |
| parent | 5ee7a62531547c8017551d14012c9e56a8938e56 (diff) | |
fix compile_commands path for windows
| -rw-r--r-- | xmake/plugins/project/clang/compile_commands.lua | 2 |
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 |
