Fixed language for generators not being set correctly.

Change-Id: I36c1f05efa836b32635e3274ac0ba976a8961bdd
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen 2015-12-07 09:53:04 -08:00
parent fe2f8d32aa
commit b0d5bb1c4b
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ int main(int argc, const char *argv[]) {
flatbuffers::StripExtension(*file_it));
for (size_t i = 0; i < num_generators; ++i) {
opts.lang = generators[i].lang;
parser->opts.lang = generators[i].lang;
if (generator_enabled[i]) {
if (!print_make_rules) {
flatbuffers::EnsureDirExists(output_path);