[PATCH] scripts: gen_compile_commands: accept object file paths

From: omer zalman

Date: Mon Sep 28 2026 - 19:48:00 EST


The command-line help lists *.o among supported path arguments,
but main() rejects every object path as an unknown file type. Map
an object path to its matching .cmd file so the documented input
produces a compile database entry.

Signed-off-by: Omer Zalman <omerzalman42@xxxxxxxxx>

The exact git-format-patch file is attached because Gmail's web
composer removes tabs from inline diffs.

Attachment: 04-compile-commands-object-input.patch
Description: Binary data