Skip to content

[Feature Request] Allow 'ninja -t compdb' accept one target #1544

@lk-chen

Description

@lk-chen

Currently, compdb iterates all edges. I am proposing an option to accept one target name, and only iterate edges it depends on.

e.g.
ninja -t compdb -a //foo:main cc cxx

New help message will be:
usage: ninja -t compdb [options] [target] [rules]

options:
-x expand @rspfile style response file invocations
-a accept one target name, and only dump compilation database for this target

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions