diff options
| author | fcying <[email protected]> | 2025-06-22 13:08:01 +0800 |
|---|---|---|
| committer | fcying <[email protected]> | 2025-06-26 09:49:14 +0800 |
| commit | 42e25f69c356dbb014459f472da1e99e27849418 (patch) | |
| tree | f5307ec2275f36abe268b30dae03fc53e158ce0a /xmake/plugins/project/xmake.lua | |
| parent | 749d449e2ff77f43771467b986aa203546f3a808 (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.lua | 3 |
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" |
