summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-06 23:10:34 +0800
committerruki <[email protected]>2022-09-06 23:10:34 +0800
commitefe31d55a33fa1f44d0980c069e10aeb82283bca (patch)
tree2e58c56820a79b291271a9e69f58e632526d3d66
parent159aea1a36e759c6726319bea4478202df1f3cfd (diff)
fix compile_commands
-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 c94f399a2..2b8db7e2e 100644
--- a/xmake/plugins/project/clang/compile_commands.lua
+++ b/xmake/plugins/project/clang/compile_commands.lua
@@ -106,7 +106,7 @@ function _make_arguments(jsonfile, arguments, sourcefile)
for _, arg in ipairs(arguments) do
local sourcekind = try {function () return language.sourcekind_of(path.filename(arg)) end}
if sourcekind and os.isfile(arg) then
- sourcefile = arg
+ sourcefile = tostring(arg)
break
end
end