summaryrefslogtreecommitdiff
path: root/xmake/rules/plugin/compile_commands
diff options
context:
space:
mode:
authorruki <[email protected]>2024-02-17 00:52:52 +0800
committerruki <[email protected]>2024-02-17 00:52:52 +0800
commit894360ff6656c48aa7286081206eb56989233751 (patch)
tree328ac4a886c9cb0d5bbcdfb53d1ede34b3d79a69 /xmake/rules/plugin/compile_commands
parent00d82edafcf46694ba87482665cc0b679d77ff99 (diff)
improve to save config #4740
Diffstat (limited to 'xmake/rules/plugin/compile_commands')
-rw-r--r--xmake/rules/plugin/compile_commands/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/plugin/compile_commands/xmake.lua b/xmake/rules/plugin/compile_commands/xmake.lua
index 0683bbc81..7aefc0862 100644
--- a/xmake/rules/plugin/compile_commands/xmake.lua
+++ b/xmake/rules/plugin/compile_commands/xmake.lua
@@ -66,7 +66,7 @@ rule("plugin.compile_commands.autoupdate")
task.run("project", {kind = "compile_commands", outputdir = outputdir, lsp = lsp})
print("compile_commands.json updated!")
end, {dependfile = dependfile,
- files = project.allfiles(),
+ files = table.join(project.allfiles(), config.filepath()),
values = sourcefiles})
lockfile:close()
end