Re: [PATCH v2 2/3] xen/scripts: adapt gen_compile_commands.py to Xen
Anthony PERARD <[email protected]>
| Newsgroups | gmane.comp.emulators.xen.devel |
|---|---|
| Message-ID | <1786371860.8631fc262581453bbf619ec5b2062170.19fec0f65df000e099@vates.tech> |
On Mon, Aug 10, 2026 at 10:49:44AM +0100, George Dunlap wrote:
> Two changes from the Linux original:
>
> - Linux's compiler invocations end with the source file
> ("... -c -o foo.o foo.c"), and the script's line pattern relies
> on that; Xen's cmd_cc_o_c places "-c $<" before "-o" and "-MQ",
> so on a Xen object tree the unmodified script matches nothing and
> produces an empty database. Adjust _LINE_PATTERN to capture the
> command up to and including "-c" plus the source file, dropping
> the remainder, which database consumers do not need.
>
> - Reword the docstring and help text to refer to Xen.
>
> The support for reading object lists from archives and modules.order
> is unused in Xen but retained to minimise divergence from the
> original.
>
> Assisted-by: LLM
> Signed-off-by: George Dunlap <[email protected]>
Reviewed-by: Anthony PERARD <[email protected]>
Thanks,
--
Anthony Perard | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech