diff options
Diffstat (limited to 'src/flatc.cpp')
-rw-r--r-- | src/flatc.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/flatc.cpp b/src/flatc.cpp index c0e5dbc7..202c3d64 100644 --- a/src/flatc.cpp +++ b/src/flatc.cpp @@ -866,8 +866,11 @@ std::unique_ptr<Parser> FlatCompiler::GenerateCode(const FlatCOptions &options, // Prefer bfbs generators if present. if (code_generator->SupportsBfbsGeneration()) { - const CodeGenerator::Status status = - code_generator->GenerateCode(bfbs_buffer, bfbs_length); + CodeGenOptions code_gen_options; + code_gen_options.output_path = options.output_path; + + const CodeGenerator::Status status = code_generator->GenerateCode( + bfbs_buffer, bfbs_length, code_gen_options); if (status != CodeGenerator::Status::OK) { Error("Unable to generate " + code_generator->LanguageName() + " for " + filebase + code_generator->status_detail + |