]> git.ipfire.org Git - thirdparty/qemu.git/commit
modinfo: lookup compile_commands.json by object
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2024 09:26:54 +0000 (11:26 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 May 2025 14:08:24 +0000 (16:08 +0200)
commit95d313127d5f4b4c3030222f4d45c49686b11f1d
treef455e6004624ef33a1d59276b0273e8f028194a2
parent911115838b29f222e47e5942b3182caf08ed08fd
modinfo: lookup compile_commands.json by object

Since modinfo support was added, Meson fixed several issues with
extract_objects and compile_commands.json lookups can be simplified.
If the lookup uses the object file as key, there is no need to use the
command line to distinguish among all entries for a given source.

Ninja 1.9 is required in order to produce the 'output' key in
compile_commands.json; it is available in CentOS Stream 9, Debian 11, SLES
15.2, Ubuntu 20.04 and in all recent BSD distros.  Samurai also has it.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build
scripts/modinfo-collect.py