mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 21:18:05 +00:00
fix --conform raising No generators registered error
This commit is contained in:
@@ -968,7 +968,7 @@ int FlatCompiler::Compile(const FlatCOptions &options) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.generators.empty()) {
|
if (options.generators.empty() && options.conform_to_schema.empty()) {
|
||||||
Error("No generator registered");
|
Error("No generator registered");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user