Skip to content

[FR] flatc generates names of output files #7687

@dbaileychess

Description

@dbaileychess

Some build systems (👀 at you bazel) require knowing all the generated filenames up front, so their custom generation build rules work. See genrule's outs parameter, as an example. With flatc right now a single schema can generate multiple files depending on language and configuration flags, and its hard to know a priori what files are going to be produced.

We sort of have something with our flatc -M option, that prints out a "MakeRules" file per language. But its in a make file format which might not be the best representation, nor is it consistent across languages, or even implemented for every language. So I think one generic implementation that just spits out the generated files names, 1 per line to stdout, would suffice.

@aardappel for historical comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    flatcFlatBuffers Compilerstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions