From a4f12400e1e2c4219cb60e041f6c4e656c4cc256 Mon Sep 17 00:00:00 2001 From: RimuruChan <42002296+RimuruChan@users.noreply.github.com> Date: Sat, 17 Feb 2024 04:27:55 +0800 Subject: fix: fix compile_commands when args too long --- 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 136de4bf1..7c6514161 100644 --- a/xmake/plugins/project/clang/compile_commands.lua +++ b/xmake/plugins/project/clang/compile_commands.lua @@ -222,7 +222,7 @@ function _add_target_source_commands(jsonfile, target) if sourcekind and _sourcebatch_is_built(sourcebatch) then for index, sourcefile in ipairs(sourcebatch.sourcefiles) do local objectfile = sourcebatch.objectfiles[index] - local arguments = table.join(compiler.compargv(sourcefile, objectfile, {target = target, sourcekind = sourcekind})) + local arguments = table.join(compiler.compargv(sourcefile, objectfile, {target = target, sourcekind = sourcekind, rawargs=true})) _make_arguments(jsonfile, arguments, {sourcefile = sourcefile, target = target}) end end -- cgit v1.3.1