xmake icon indicating copy to clipboard operation
xmake copied to clipboard

Disable compile_commands for specified targets

Open star-hengxing opened this issue 8 months ago • 3 comments

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

star-hengxing avatar Jun 15 '25 02:06 star-hengxing

现在可以指定 target 去生成了。https://github.com/xmake-io/xmake/pull/6572

waruqi avatar Jun 29 '25 13:06 waruqi

这里是在命令行指定,但设置 policy 给某些 target 禁用会更方便,比如一些 codegen 出来的代码。

star-hengxing avatar Jun 30 '25 14:06 star-hengxing

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.

Issues-translate-bot avatar Jun 30 '25 14:06 Issues-translate-bot