xmake
xmake copied to clipboard
Disable compile_commands for specified targets
Is your feature request related to a problem? Please describe.
Maybe related https://github.com/xmake-io/xmake/issues/6140
Describe the solution you'd like
set_policy("build.compile_commands", false)
Describe alternatives you've considered
No response
Additional context
No response
现在可以指定 target 去生成了。https://github.com/xmake-io/xmake/pull/6572
这里是在命令行指定,但设置 policy 给某些 target 禁用会更方便,比如一些 codegen 出来的代码。
Bot detected the issue body's language is not English, translate it automatically.
This is specified on the command line, but it is more convenient to set policy to disable certain targets, such as some codes produced by codegen.