diff options
| author | ruki <[email protected]> | 2025-06-26 10:56:34 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-26 10:56:34 +0800 |
| commit | 2fd95e31bfb024029680bdac00298b04badd4578 (patch) | |
| tree | 007603cb3c07be08552a6dd4548c6f8f91f17f35 /xmake/plugins/project/xmake.lua | |
| parent | 2439edb2dc5f8f2fab753a7688489d99fd45bf7f (diff) | |
| parent | 42e25f69c356dbb014459f472da1e99e27849418 (diff) | |
Merge pull request #6572 from fcying/dev
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" |
