diff options
| author | RimuruChan <[email protected]> | 2024-02-17 04:27:55 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-17 04:27:55 +0800 |
| commit | a4f12400e1e2c4219cb60e041f6c4e656c4cc256 (patch) | |
| tree | 9acb2527810502c83f20887b9ea328c75f48ebb7 | |
| parent | 46e7ec6f73079a78f6af1da6ea39c302c676d5f9 (diff) | |
fix: fix compile_commands when args too long
| -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 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 |
