From efe31d55a33fa1f44d0980c069e10aeb82283bca Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 6 Sep 2022 23:10:34 +0800 Subject: fix compile_commands --- xmake/plugins/project/clang/compile_commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1