summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/xmake.lua
diff options
context:
space:
mode:
authorfcying <[email protected]>2025-06-22 13:08:01 +0800
committerfcying <[email protected]>2025-06-26 09:49:14 +0800
commit42e25f69c356dbb014459f472da1e99e27849418 (patch)
treef5307ec2275f36abe268b30dae03fc53e158ce0a /xmake/plugins/project/xmake.lua
parent749d449e2ff77f43771467b986aa203546f3a808 (diff)
feat(plugin/project): support gen compile_commands.json for specific target
Diffstat (limited to 'xmake/plugins/project/xmake.lua')
-rw-r--r--xmake/plugins/project/xmake.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/plugins/project/xmake.lua b/xmake/plugins/project/xmake.lua
index 3bf958d77..7cae4096c 100644
--- a/xmake/plugins/project/xmake.lua
+++ b/xmake/plugins/project/xmake.lua
@@ -61,6 +61,9 @@ task("project")
, {'a', "archs", "kv" , nil , "Set the project archs."
, " e.g. "
, " - xmake project -k vsxmake -a \"x86,x64\"" }
+ , {'t', "target", "kv" , nil , "Set the project target."
+ , " e.g. "
+ , " - xmake project -k compile_commands -t \"custom\"" }
, {nil, "lsp", "kv" , nil , "Set the LSP backend for compile_commands."
, " e.g. "
, " - xmake project -k compile_commands --lsp=clangd"