compile_commands.json
Run the following to place compile_commands.json
at the root of your repository:
$ tools/bazel run //common:kernel_aarch64_compile_commands
If you want to build compile_commands.json
for in-tree modules, create a kernel_compile_commands
target with kernel_build
set accordingly, then tools/bazel run
the target.
See kernel_compile_commands
in documentation for all rules for details.