-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
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.