Skip to content

Commit 2d8b99b

Browse files
thejtshowJustin Davis
authored andcommitted
add bfbs-builtins requirement
1 parent 2d31668 commit 2d8b99b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/flatc.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,13 @@ void FlatCompiler::ValidateOptions(const FlatCOptions &options) {
789789
"--cs-gen-json-serializer requires --gen-object-api to be set as "
790790
"well.");
791791
}
792+
793+
// wireshark generator requires `--bfbs-builtins` to get access to well-known
794+
// attributes.
795+
if (opts.lang_to_generate & IDLOptions::Language::kWireshark &&
796+
!opts.binary_schema_builtins) {
797+
Error("--bfbs-builtins must be set to generate Wireshark dissectors.");
798+
}
792799
}
793800

794801
flatbuffers::Parser FlatCompiler::GetConformParser(

0 commit comments

Comments
 (0)